From 489621ca49328137f9f49051d4c800c5604f26ba Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Sat, 11 Nov 2023 01:47:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20chore(fixtures):=20Remove=20`ext?= =?UTF-8?q?ensionId`=20cache=20(#989)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fixtures/src/fixtures/testWithSynpress.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/fixtures/src/fixtures/testWithSynpress.ts b/packages/fixtures/src/fixtures/testWithSynpress.ts index cafacccf2..520b315c5 100644 --- a/packages/fixtures/src/fixtures/testWithSynpress.ts +++ b/packages/fixtures/src/fixtures/testWithSynpress.ts @@ -32,7 +32,6 @@ type PublicSynpressFixtures = { type SynpressFixtures = TestFixtures & PrivateSynpressFixtures & PublicSynpressFixtures // TODO: Bad practice. Use a store! -let _extensionId: string let _metamaskPage: Page const synpressFixtures = ( @@ -87,13 +86,9 @@ const synpressFixtures = ( await context.close() }, extensionId: async ({ context }, use) => { - if (_extensionId) { - await use(_extensionId) - } - - _extensionId = await getExtensionId(context, 'MetaMask') + const extensionId = await getExtensionId(context, 'MetaMask') - await use(_extensionId) + await use(extensionId) }, metamaskPage: async ({ context: _ }, use) => { await use(_metamaskPage)