Skip to content

Commit

Permalink
fix e2e test flake
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Oct 17, 2023
1 parent 0a6b508 commit 8133ead
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/e2e-tests/navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ test.describe('navigating', () => {

await sbPage.waitUntilLoaded();

await page.waitForFunction(() =>
window.document.location.href.match('/docs/example-button--docs')
);

await expect(sbPage.page.url()).toContain('/docs/example-button--docs');
});
});

0 comments on commit 8133ead

Please sign in to comment.