From 6bec0a598fa3093e0ec1f7cfd50d6f6aa50191b2 Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Sun, 22 Oct 2023 18:06:29 +0200 Subject: [PATCH] context --- wallets/metamask/test/e2e/metamask.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wallets/metamask/test/e2e/metamask.spec.ts b/wallets/metamask/test/e2e/metamask.spec.ts index a249692be..c98579b79 100644 --- a/wallets/metamask/test/e2e/metamask.spec.ts +++ b/wallets/metamask/test/e2e/metamask.spec.ts @@ -92,7 +92,9 @@ describe('MetaMask', () => { }) describe('lock', () => { - test('should lock the wallet', async ({ metamaskPage }) => { + test('should lock the wallet', async ({ context }) => { + console.log('context.pages().length', context.pages().length) + const metamaskPage = context.pages()[1] as Page await metamaskPage.bringToFront() await lock(metamaskPage) @@ -102,7 +104,9 @@ describe('MetaMask', () => { }) describe('unlock', () => { - test('should unlock the wallet', async ({ metamaskPage }) => { + test('should unlock the wallet', async ({ context }) => { + console.log('context.pages().length', context.pages().length) + const metamaskPage = context.pages()[1] as Page await unlock(metamaskPage, DEFAULT_PASSWORD) await expect(metamaskPage.locator(HomePageSelectors.logo)).toBeVisible()