Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable verify tests #2774

Merged
merged 5 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading