From b3a6f31850130246714b92d185a3cbddddf74979 Mon Sep 17 00:00:00 2001 From: ost-ptk Date: Wed, 15 Nov 2023 15:04:30 +0200 Subject: [PATCH] testing --- e2e-tests/popup/test.spec.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/e2e-tests/popup/test.spec.ts b/e2e-tests/popup/test.spec.ts index bb3ee5e8b..305e402ce 100644 --- a/e2e-tests/popup/test.spec.ts +++ b/e2e-tests/popup/test.spec.ts @@ -2,6 +2,18 @@ import { test } from '../fixtures'; import { vaultPassword } from '../common'; test('test', async ({ extensionId, context, page }) => { + const importAccountPage = await context.newPage(); + await importAccountPage.goto( + `chrome-extension://${extensionId}/import-account-with-file.html` + ); + + await test + .expect( + importAccountPage.getByRole('heading', { + name: 'Import account from secret key file' + }) + ) + .toBeVisible(); await page.goto(`chrome-extension://${extensionId}/popup.html`); await page.getByPlaceholder('Password', { exact: true }).fill(vaultPassword); @@ -9,14 +21,14 @@ test('test', async ({ extensionId, context, page }) => { await page.getByTestId('menu-open-icon').click(); - const [importAccountPage] = await Promise.all([ + const [importAccountPage2] = await Promise.all([ context.waitForEvent('page'), await page.getByText('Import account').click() ]); await test .expect( - importAccountPage.getByRole('heading', { + importAccountPage2.getByRole('heading', { name: 'Import account from secret key file' }) )