fix(login): fix sync login issue with react

This commit is contained in:
Vijay Budhram 2024-06-11 23:37:53 -04:00
Родитель 8379281c7a
Коммит 4539dd68c7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9778545895B2532B
5 изменённых файлов: 3 добавлений и 32 удалений

Просмотреть файл

@ -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[];