зеркало из https://github.com/mozilla/fxa.git
fix(login): fix sync login issue with react
This commit is contained in:
Родитель
8379281c7a
Коммит
4539dd68c7
|
@ -27,12 +27,6 @@ test.describe('severity-2 #smoke', () => {
|
|||
await signinReact.fillOutEmailFirstForm(credentials.email);
|
||||
await signinReact.fillOutPasswordForm(credentials.password);
|
||||
|
||||
await signinReact.sendWebChannelMessage(
|
||||
createCustomEventDetail(FirefoxCommand.LinkAccount, {
|
||||
ok: true,
|
||||
})
|
||||
);
|
||||
|
||||
await expect(page).toHaveURL(/connect_another_device/);
|
||||
await expect(connectAnotherDevice.fxaConnected).toBeVisible();
|
||||
await expect(
|
||||
|
|
|
@ -34,12 +34,6 @@ test.describe('severity-1 #smoke', () => {
|
|||
await signinReact.fillOutEmailFirstForm(credentials.email);
|
||||
await signinReact.fillOutPasswordForm(credentials.password);
|
||||
|
||||
await signinReact.sendWebChannelMessage(
|
||||
createCustomEventDetail(FirefoxCommand.LinkAccount, {
|
||||
ok: true,
|
||||
})
|
||||
);
|
||||
|
||||
await expect(connectAnotherDevice.fxaConnected).toBeEnabled();
|
||||
await connectAnotherDevice.startBrowsingButton.click();
|
||||
await expect(page).toHaveURL(/settings/, { timeout: 1000 });
|
||||
|
|
|
@ -94,12 +94,6 @@ test.describe('severity-1 #smoke', () => {
|
|||
const code = await getCode(secret);
|
||||
await signinReact.fillOutAuthenticationForm(code);
|
||||
|
||||
await signinReact.sendWebChannelMessage(
|
||||
createCustomEventDetail(FirefoxCommand.LinkAccount, {
|
||||
ok: true,
|
||||
})
|
||||
);
|
||||
|
||||
await expect(page).toHaveURL(/connect_another_device/);
|
||||
|
||||
await expect(connectAnotherDevice.fxaConnected).toBeVisible();
|
||||
|
|
|
@ -28,12 +28,6 @@ test.describe('severity-2 #smoke', () => {
|
|||
await signinReact.fillOutEmailFirstForm(credentials.email);
|
||||
await signinReact.fillOutPasswordForm(credentials.password);
|
||||
|
||||
await signinReact.sendWebChannelMessage(
|
||||
createCustomEventDetail(FirefoxCommand.LinkAccount, {
|
||||
ok: true,
|
||||
})
|
||||
);
|
||||
|
||||
await expect(connectAnotherDevice.fxaConnected).toBeEnabled();
|
||||
});
|
||||
});
|
||||
|
@ -55,12 +49,6 @@ test.describe('severity-2 #smoke', () => {
|
|||
await signinReact.fillOutEmailFirstForm(credentials.email);
|
||||
await signinReact.fillOutPasswordForm(credentials.password);
|
||||
|
||||
await signinReact.sendWebChannelMessage(
|
||||
createCustomEventDetail(FirefoxCommand.LinkAccount, {
|
||||
ok: true,
|
||||
})
|
||||
);
|
||||
|
||||
await page.waitForURL(/signin_token_code/);
|
||||
|
||||
const code = await target.emailClient.waitForEmail(
|
||||
|
|
|
@ -79,11 +79,12 @@ export type SignedInUser = {
|
|||
|
||||
export type FxALoginRequest = {
|
||||
email: string;
|
||||
keyFetchToken: hexstring;
|
||||
sessionToken: hexstring;
|
||||
uid: hexstring;
|
||||
unwrapBKey: string;
|
||||
verified: boolean;
|
||||
keyFetchToken?: hexstring;
|
||||
unwrapBKey?: string;
|
||||
verifiedCanLinkAccount?: boolean;
|
||||
services?: {
|
||||
sync: {
|
||||
offeredEngines?: string[];
|
||||
|
|
Загрузка…
Ссылка в новой задаче