From b221b10021db0c81be087d5179e9dbb5f61ceb2d Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Fri, 30 Aug 2024 11:27:24 -0700 Subject: [PATCH 1/2] chore: enable verify tests --- apps/laboratory/tests/shared/utils/project.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/laboratory/tests/shared/utils/project.ts b/apps/laboratory/tests/shared/utils/project.ts index f9eec13396..b7d48cd22f 100644 --- a/apps/laboratory/tests/shared/utils/project.ts +++ b/apps/laboratory/tests/shared/utils/project.ts @@ -42,14 +42,12 @@ const SOLANA_DISABLED_TESTS = [ 'siwe-sa.spec.ts', 'smart-account.spec.ts', 'wallet-features.spec.ts', - 'metamask.spec.ts', - 'verify.spec.ts' + 'metamask.spec.ts' ] -const WAGMI_DISABLED_TESTS = ['metamask.spec.ts', 'smart-account.spec.ts', 'verify.spec.ts'] -const ETHERS_DISABLED_TESTS = ['metamask.spec.ts', 'verify.spec.ts'] +const WAGMI_DISABLED_TESTS = ['metamask.spec.ts', 'smart-account.spec.ts'] +const ETHERS_DISABLED_TESTS = ['metamask.spec.ts'] const ETHERS5_DISABLED_TESTS = [ 'metamask.spec.ts', - 'verify.spec.ts', 'smart-account.spec.ts', 'email.spec.ts', 'smart-account.spec.ts', From f12b85dd528f1e2d6dda2a44652960cd66b0d5c3 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 3 Sep 2024 16:12:00 -0700 Subject: [PATCH 2/2] chore: verify tests only work on solana --- apps/laboratory/tests/verify.spec.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/laboratory/tests/verify.spec.ts b/apps/laboratory/tests/verify.spec.ts index 4452f33ec2..7f68b5f3af 100644 --- a/apps/laboratory/tests/verify.spec.ts +++ b/apps/laboratory/tests/verify.spec.ts @@ -11,6 +11,10 @@ import { expect } from '@playwright/test' testM( 'connection and signature requests from non-verified project should show as cannot verify', async ({ modalPage, context }) => { + if (modalPage.library === 'solana') { + return + } + const modalValidator = new ModalValidator(modalPage.page) const walletPage = new WalletPage(await context.newPage()) await walletPage.load() @@ -39,6 +43,10 @@ testM( testMVerifyValid( 'connection and signature requests from non-scam verified domain should show as domain match', async ({ modalPage, context }) => { + if (modalPage.library === 'solana') { + return + } + const modalValidator = new ModalValidator(modalPage.page) const walletPage = new WalletPage(await context.newPage()) await walletPage.load() @@ -67,6 +75,10 @@ testMVerifyValid( testMVerifyDomainMismatch( 'connection and signature requests from non-scam verified domain but on localhost should show as invalid domain', async ({ modalPage, context }) => { + if (modalPage.library === 'solana') { + return + } + const modalValidator = new ModalValidator(modalPage.page) const walletPage = new WalletPage(await context.newPage()) await walletPage.load() @@ -95,6 +107,10 @@ testMVerifyDomainMismatch( testMVerifyEvil( 'connection and signature requests from scam verified domain should show as scam domain', async ({ modalPage, context }) => { + if (modalPage.library === 'solana') { + return + } + const modalValidator = new ModalValidator(modalPage.page) const walletPage = new WalletPage(await context.newPage()) await walletPage.load()