diff --git a/packages/functional-tests/tests/misc/recoveryKeyPromo.spec.ts b/packages/functional-tests/tests/misc/recoveryKeyPromo.spec.ts index 320a22a322a..05eef454313 100644 --- a/packages/functional-tests/tests/misc/recoveryKeyPromo.spec.ts +++ b/packages/functional-tests/tests/misc/recoveryKeyPromo.spec.ts @@ -150,7 +150,7 @@ test.describe('recovery key promo', () => { await inlineRecoveryKey.fillOutHint('hint'); await inlineRecoveryKey.clickFinish(); - await expect(connectAnotherDevice.header).toBeEnabled(); + await expect(connectAnotherDevice.fxaConnected).toBeEnabled(); }); test('can setup recovery key inline after email code', async ({ @@ -187,8 +187,8 @@ test.describe('recovery key promo', () => { await inlineRecoveryKey.fillOutHint('hint'); await inlineRecoveryKey.clickFinish(); - await page.waitForURL(/connect_another_device/); - await expect(connectAnotherDevice.header).toBeAttached(); + await page.waitForURL(/pair/); + await expect(connectAnotherDevice.fxaConnected).toBeEnabled(); }); test('can setup recovery key inline after 2FA', async ({ @@ -235,8 +235,8 @@ test.describe('recovery key promo', () => { await inlineRecoveryKey.fillOutHint('hint'); await inlineRecoveryKey.clickFinish(); - await page.waitForURL(/connect_another_device/); - await expect(connectAnotherDevice.header).toBeEnabled(); + await page.waitForURL(/pair/); + await expect(connectAnotherDevice.fxaConnected).toBeEnabled(); await settings.goto(); await settings.disconnectTotp(); // Required before teardown @@ -266,10 +266,10 @@ test.describe('recovery key promo', () => { await inlineRecoveryKey.clickDoItLater(); // User taken to connect another device page - await page.waitForURL(/connect_another_device/); - await expect(connectAnotherDevice.header).toBeEnabled(); + await page.waitForURL(/pair/); + await expect(connectAnotherDevice.fxaConnected).toBeEnabled(); - await connectAnotherDevice.startBrowsingButton.click(); + await connectAnotherDevice.clickNotNowPair(); await expect(settings.settingsHeading).toBeVisible(); await expect(settings.recoveryKey.status).toHaveText('Not Set'); diff --git a/packages/functional-tests/tests/oauth/oauthPromptNone.spec.ts b/packages/functional-tests/tests/oauth/oauthPromptNone.spec.ts index d95010d01f6..ccad43889a7 100644 --- a/packages/functional-tests/tests/oauth/oauthPromptNone.spec.ts +++ b/packages/functional-tests/tests/oauth/oauthPromptNone.spec.ts @@ -33,6 +33,7 @@ test.describe('severity-1 #smoke', () => { await relier.signInPromptNone(); //Verify error message + await page.waitForURL(/authorization/); await expect(page.getByText('User is not signed in')).toBeVisible(); }); @@ -118,7 +119,8 @@ test.describe('severity-1 #smoke', () => { await page.goto(`${target.relierUrl}/?${query.toString()}`); await relier.signInPromptNone(); - //Verify error message + // Verify error message + await page.waitForURL(/authorization/); await expect(page.getByText('User is not signed in')).toBeVisible(); }); diff --git a/packages/functional-tests/tests/postVerify/syncForcePasswordChange.spec.ts b/packages/functional-tests/tests/postVerify/syncForcePasswordChange.spec.ts index 4d0b04b2de7..0400153c3f6 100644 --- a/packages/functional-tests/tests/postVerify/syncForcePasswordChange.spec.ts +++ b/packages/functional-tests/tests/postVerify/syncForcePasswordChange.spec.ts @@ -40,7 +40,7 @@ test.describe('severity-2 #smoke', () => { credentials.password = newPassword; // Verify logged in on connect another device page - await expect(connectAnotherDevice.header).toBeVisible(); + await expect(connectAnotherDevice.fxaConnected).toBeEnabled(); }); }); }); diff --git a/packages/functional-tests/tests/react-conversion/signup.spec.ts b/packages/functional-tests/tests/react-conversion/signup.spec.ts index 984694a768e..df2cf74abce 100644 --- a/packages/functional-tests/tests/react-conversion/signup.spec.ts +++ b/packages/functional-tests/tests/react-conversion/signup.spec.ts @@ -140,7 +140,7 @@ test.describe('severity-2 #smoke', () => { await expect(signup.cannotCreateAccountHeading).toBeVisible(); }); - test('signup via product page and redirect after confirm', async ({ + test('signup via product subscription page and redirect after confirm', async ({ page, target, pages: { confirmSignupCode, relier, settings, signup, subscribe }, diff --git a/packages/fxa-content-server/app/scripts/templates/pair/index.mustache b/packages/fxa-content-server/app/scripts/templates/pair/index.mustache index d4d44c392c4..f26df50ae80 100644 --- a/packages/fxa-content-server/app/scripts/templates/pair/index.mustache +++ b/packages/fxa-content-server/app/scripts/templates/pair/index.mustache @@ -2,7 +2,13 @@