Skip to content

Commit fec799a

Browse files
Merge pull request #19924 from mozilla/fix-flaky-redirect-test
fix(functional-test): fix flaky redirect tests
2 parents 4b411e7 + 629b8e6 commit fec799a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/functional-tests/tests/settings/redirect.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ test.describe('severity-2 #smoke', () => {
4545

4646
await page.bringToFront();
4747
await settings.secondaryEmail.addButton.click();
48+
await page.waitForURL(/signin_totp_code/);
4849

49-
await expect(page).toHaveURL(/signin_totp_code/);
5050
await expect(signinTotpCode.aalUpgradeBanner).toBeVisible();
5151
await expect(
5252
page.getByRole('heading', {
@@ -97,8 +97,8 @@ test.describe('severity-2 #smoke', () => {
9797

9898
await page.bringToFront();
9999
await page.reload();
100+
await page.waitForURL(/signin_totp_code/);
100101

101-
await expect(page).toHaveURL(/signin_totp_code/);
102102
await expect(signinTotpCode.aalUpgradeBanner).toBeVisible();
103103
await expect(
104104
page.getByRole('heading', {

0 commit comments

Comments
 (0)