-
Notifications
You must be signed in to change notification settings - Fork 230
PART3: feat(settings): Migrate fxa-settings from GraphQL to direct auth-client (cutover) #19981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,6 +138,7 @@ test.describe('severity-2 #smoke', () => { | |
| test('sign in, delete the account', async ({ | ||
| target, | ||
| syncBrowserPages: { | ||
| connectAnotherDevice, | ||
| settings, | ||
| deleteAccount, | ||
| page, | ||
|
|
@@ -147,22 +148,39 @@ test.describe('severity-2 #smoke', () => { | |
| testAccountTracker, | ||
| }) => { | ||
| const credentials = await testAccountTracker.signUpSync(); | ||
| const customEventDetail: LinkAccountResponse = { | ||
| id: 'account_updates', | ||
| message: { | ||
| command: FirefoxCommand.LinkAccount, | ||
| data: { | ||
| ok: true, | ||
| }, | ||
| }, | ||
| }; | ||
|
|
||
| await page.goto( | ||
| `${target.contentServerUrl}?context=fx_desktop_v3&service=sync&action=email` | ||
| ); | ||
| await signin.respondToWebChannelMessage(customEventDetail); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we have to do this? It seems like in a fucntional tests stuff like this shouldn't be needed.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea, this was surprising to me. Wit the graphql removal, these started to fail, however they were not structured the same way as the other tests which did do this. Its possible that our graphql approach was masking something.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have we manually tested this flow? A user won't be able to trigger that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tested this locally and the signin/up works as expected, no hanging. |
||
| await signin.fillOutEmailFirstForm(credentials.email); | ||
| await signin.fillOutPasswordForm(credentials.password); | ||
|
|
||
| await expect(page).toHaveURL(/signin_token_code/); | ||
|
|
||
| await signin.checkWebChannelMessage(FirefoxCommand.LinkAccount); | ||
|
|
||
| const code = await target.emailClient.getVerifyLoginCode( | ||
| credentials.email | ||
| ); | ||
| await signinTokenCode.fillOutCodeForm(code); | ||
| await expect(page).toHaveURL(/pair/); | ||
|
|
||
| await signin.checkWebChannelMessage(FirefoxCommand.Login); | ||
|
|
||
| await expect(connectAnotherDevice.fxaConnected).toBeEnabled(); | ||
|
|
||
| await settings.goto(); | ||
| await page.waitForURL(/settings/); | ||
| await expect(settings.settingsHeading).toBeVisible(); | ||
| //Click Delete account | ||
| await settings.deleteAccountButton.click(); | ||
| await deleteAccount.deleteAccount(credentials.password); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.