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.
12 lines
514 B
TypeScript
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 };
|
|
}
|