Skip to content

Commit

Permalink
refactor(e2e-assets): improve asset input handling with logging for b…
Browse files Browse the repository at this point in the history
…etter traceability
  • Loading branch information
nelitow committed Dec 12, 2024
1 parent 5aa2b8d commit 466f3d4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/e2e-assets/playwright/crx/assets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ test.describe('Check assets', () => {

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

await page.getByRole('button', { name: 'Next: Your password' }).click();
Expand Down

0 comments on commit 466f3d4

Please sign in to comment.