You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/test/automation/setup/recovery_using_seed.ts

12 lines
514 B
TypeScript

import { _electron, Page } from '@playwright/test';
import { clickOnTestIdWithText, typeIntoInput } from '../utilities/utils';
export async function recoverFromSeed(window: Page, userName: string, recoveryPhrase: string) {
await clickOnTestIdWithText(window, 'restore-using-recovery');
await typeIntoInput(window, 'recovery-phrase-input', recoveryPhrase);
await typeIntoInput(window, 'display-name-input', userName);
await clickOnTestIdWithText(window, 'continue-session-button');
return { window };
}