Skip to content

Commit

Permalink
chore: enable verify tests (#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 authored Sep 4, 2024
1 parent 934cb71 commit 88ae1d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/laboratory/tests/shared/utils/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
16 changes: 16 additions & 0 deletions apps/laboratory/tests/verify.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 88ae1d8

Please sign in to comment.