Skip to content

Commit

Permalink
remove additional waitForUrl in fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Vostrak authored and Gregor Vostrak committed Jan 22, 2024
1 parent 0ac9cae commit 1fe3f98
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions playwright/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ export const test = baseTest.extend<object, { workerStorageState: string }>({
.fill('amazingpassword123');
await page.getByRole('button', { name: 'Register' }).click();

// Wait until the page receives the cookies.
//
// Sometimes login flow sets cookies in the process of several redirects.
// Wait for the final URL to ensure that the cookies are actually set.
await page.waitForURL(PLAYWRIGHT_BASE_URL + '/dashboard');
// Alternatively, you can wait until the page reaches a state where all cookies are set.
await expect(
page.getByRole('heading', { name: 'Dashboard' })
Expand Down

0 comments on commit 1fe3f98

Please sign in to comment.