Skip to content

Commit

Permalink
refactor(e2e-assets): streamline seed phrase import by removing unnec…
Browse files Browse the repository at this point in the history
…essary logging and code
  • Loading branch information
nelitow committed Dec 12, 2024
1 parent 804c479 commit 20a9148
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/e2e-assets/playwright/crx/assets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,11 @@ test.describe('Check assets', () => {
await page.getByText('I Agree to the Terms Of Use').click();
await page.getByRole('button', { name: 'Next: Seed Phrase' }).click();
const mnemonic = process.env.READONLY_TESTNET_ASSETS_VIEW;
console.log(`Importing wallet with mnemonic: ${mnemonic}`);

await page.evaluate(async (text) => {
await navigator.clipboard.writeText(text);
}, mnemonic);

// const words = mnemonic.split(' ');
// for (const [index, word] of words.entries()) {
// console.log(`Filling word ${index + 1}: ${word}`);
// const locator = page.locator('div').filter({
// hasText: new RegExp(`^${index + 1}$`),
// });
// const input = locator.getByLabel('Type your text');
// await input.fill(word);
// console.log(`Filled word ${index + 1}`);
// }

await page.waitForTimeout(1000);
await page.getByRole('button', { name: 'Paste seed phrase' }).click();

Expand Down

0 comments on commit 20a9148

Please sign in to comment.