From 00c5699713d99a5c579e30d5e28f8fa166ef9171 Mon Sep 17 00:00:00 2001 From: Luka Isailovic Date: Tue, 13 Feb 2024 19:12:32 +0100 Subject: [PATCH] fix: undo temporary changes due to react-wallet regression --- apps/laboratory/package.json | 2 +- apps/laboratory/playwright.config.ts | 6 +++--- apps/laboratory/tests/connect.spec.ts | 4 +--- apps/laboratory/tests/shared/constants/index.ts | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index 4187cde6bf..5466f9e56f 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -8,7 +8,7 @@ "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "playwright:start": "npm run dev:laboratory", "playwright:install": "npx playwright install --with-deps", - "playwright:test": "npx playwright test --grep-invert canary.spec.ts", + "playwright:test": "npx playwright test --grep 'connect.spec.ts|basic-tests.spec.ts|siwe.spec.ts'", "playwright:test:wallet": "npx playwright test --grep connect.spec.ts", "playwright:test:canary": "npx playwright test --grep canary.spec.ts", "playwright:debug": "npx playwright test --debug --grep-invert canary.spec.ts", diff --git a/apps/laboratory/playwright.config.ts b/apps/laboratory/playwright.config.ts index 7f94fc3011..44730b0ece 100644 --- a/apps/laboratory/playwright.config.ts +++ b/apps/laboratory/playwright.config.ts @@ -12,9 +12,9 @@ const PERMUTATIONS = DEVICES.flatMap(device => LIBRARIES.map(library => ({ devic export default defineConfig({ testDir: './tests', - fullyParallel: false, - retries: 3, - workers: 1, + fullyParallel: true, + retries: 2, + workers: 6, reporter: process.env['CI'] ? [['list'], ['html', { open: 'never' }]] : [['list'], ['html', { host: '0.0.0.0' }]], diff --git a/apps/laboratory/tests/connect.spec.ts b/apps/laboratory/tests/connect.spec.ts index b92d8db77c..bcc6f84740 100644 --- a/apps/laboratory/tests/connect.spec.ts +++ b/apps/laboratory/tests/connect.spec.ts @@ -66,8 +66,6 @@ testMW( return } - // Until all namespaces are allowed - testMW.skip() let targetChain = 'Polygon' await modalPage.switchNetwork(targetChain) await modalPage.sign() @@ -76,7 +74,7 @@ testMW( await modalValidator.expectAcceptedSign() // Switch to Ethereum - targetChain = 'Sepolia' + targetChain = 'Ethereum' await modalPage.switchNetwork(targetChain) await modalPage.sign() await walletValidator.expectReceivedSign({ chainName: targetChain }) diff --git a/apps/laboratory/tests/shared/constants/index.ts b/apps/laboratory/tests/shared/constants/index.ts index fdb2012c48..fd5ec3badd 100644 --- a/apps/laboratory/tests/shared/constants/index.ts +++ b/apps/laboratory/tests/shared/constants/index.ts @@ -8,4 +8,4 @@ export const DEFAULT_SESSION_PARAMS: SessionParams = { optAccounts: ['1', '2'], accept: true } -export const DEFAULT_CHAIN_NAME = process.env['DEFAULT_CHAIN_NAME'] || 'Sepolia' +export const DEFAULT_CHAIN_NAME = process.env['DEFAULT_CHAIN_NAME'] || 'Ethereum'