Skip to content
3 changes: 2 additions & 1 deletion apps/evm-bridge/tests/helpers/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export async function importL1WalletFromMnemonic(
mnemonic: string | string[],
) {
await page.goto(l1ExtensionUrl, { waitUntil: 'commit' });
await page.getByRole('button', { name: /Add Profile/ }).click();
await page.getByRole('button', { name: /Get Started/ }).click({ timeout: 30_000 });
await page.getByText('Add existing wallet').click();
await page.getByText('Mnemonic', { exact: true }).click();

const mnemonicArray = typeof mnemonic === 'string' ? mnemonic.split(' ') : mnemonic;
Expand Down
5 changes: 3 additions & 2 deletions apps/wallet-dashboard/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export async function connectWallet(page: Page, context: BrowserContext, extensi
}

export async function createWallet(page: Page) {
await page.getByRole('button', { name: /Add Profile/ }).click({ timeout: 30000 });
await page.getByText('New Mnemonic Profile', { exact: true }).click();
await page.getByRole('button', { name: /Get Started/ }).click({ timeout: 30_000 });
await page.getByText('Create a new wallet').click();
await page.getByText('Mnemonic', { exact: true }).click();
await page.getByTestId('password.input').fill('iotae2etests');
await page.getByTestId('password.confirmation').fill('iotae2etests');
await page.getByText('I read and agree').click();
Expand Down
4 changes: 2 additions & 2 deletions apps/wallet/tests/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function createWallet(page: Page, extensionUrl: string) {
await page.goto(extensionUrl, { waitUntil: 'commit' });
await page.getByRole('button', { name: /Get Started/ }).click({ timeout: SHORT_TIMEOUT });
await page.getByText('Create a new wallet').click();
await page.getByText('Recovery Phrase', { exact: true }).click();
await page.getByText('Mnemonic', { exact: true }).click();
await page.getByTestId('password.input').fill('iotae2etests');
await page.getByTestId('password.confirmation').fill('iotae2etests');
await page.getByText('I read and agree').click();
Expand All @@ -25,7 +25,7 @@ export async function importWallet(page: Page, extensionUrl: string, mnemonic: s
await page.goto(extensionUrl, { waitUntil: 'commit' });
await page.getByRole('button', { name: /Get Started/ }).click({ timeout: SHORT_TIMEOUT });
await page.getByText('Add existing wallet').click();
await page.getByText('Recovery Phrase', { exact: true }).click();
await page.getByText('Mnemonic', { exact: true }).click();

const mnemonicArray = typeof mnemonic === 'string' ? mnemonic.split(' ') : mnemonic;

Expand Down
Loading