Skip to content

Commit 31b965d

Browse files
committed
Extend timeout
1 parent 6cd3641 commit 31b965d

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed

pnpm-lock.yaml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wallets/phantom/src/playwright/fixtures/phantomFixtures.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { persistLocalStorage } from '../fixture-actions/persistLocalStorage'
1515
import { closeSuiAndMonadIfPresent } from '../pages/HomePage/actions'
1616
import { unlock } from '../pages/UnlockPage/actions'
1717
import { loadAndWaitForPopupPage } from '../utils/waitForPopupPageLoad'
18-
// import { waitForTestPageLoad } from "../utils/waitForTestPageLoad";
1918

2019
type PhantomFixtures = {
2120
_contextPath: string

wallets/phantom/src/playwright/pages/HomePage/actions/getAccountAddress.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import type { Networks } from '../../../../type/Networks'
66
export default async function getAccountAddress(network: Networks, page: Page): Promise<string> {
77
// Copy account address to clipboard
88
await page.locator(Selectors.accountMenu.accountName).hover()
9-
await page.locator(Selectors[`${network}WalletAddress`]).click()
9+
await page
10+
.locator(Selectors[`${network}WalletAddress`])
11+
.first()
12+
.click()
1013

1114
// Get clipboard content
1215
const handle = await page.evaluateHandle(() => navigator.clipboard.readText())

wallets/phantom/test/playwright/e2e/confirmTransaction.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const test = synpress
66

77
const { expect } = test
88

9-
test('should Sign Transaction', async ({ page, phantom }) => {
9+
test('should Sign Transaction - ', async ({ page, phantom }) => {
10+
test.setTimeout(90_000)
11+
1012
await solanaSandboxSetup(page, phantom)
1113

1214
await page.getByRole('button', { name: 'Sign Transaction' }).click()
@@ -20,6 +22,8 @@ test('should Sign Transaction', async ({ page, phantom }) => {
2022
})
2123

2224
test('should Sign All Transactions', async ({ page, phantom }) => {
25+
test.setTimeout(90_000)
26+
2327
await solanaSandboxSetup(page, phantom)
2428

2529
await page.getByRole('button', { name: 'Sign All Transaction' }).click()

wallets/phantom/test/playwright/e2e/connectToDapp.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ test('should connect wallet to dapp', async ({ context, page, extensionId }) =>
2323
})
2424

2525
test('should connect multiple wallets to dapp', async ({ context, page, phantomPage, extensionId }) => {
26+
test.setTimeout(90_000)
27+
2628
const phantom = new Phantom(context, phantomPage, basicSetup.walletPassword, extensionId)
2729

2830
await phantom.addNewAccount('NewAccount1')

wallets/phantom/test/playwright/e2e/rejectTransaction.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const test = synpress
77
const { expect } = test
88

99
test('should Reject Transaction ', async ({ page, phantom }) => {
10+
test.setTimeout(90_000)
11+
1012
await solanaSandboxSetup(page, phantom)
1113

1214
await page.getByRole('button', { name: 'Sign Transaction' }).click()
@@ -20,6 +22,8 @@ test('should Reject Transaction ', async ({ page, phantom }) => {
2022
})
2123

2224
test('should Reject All Transactions ', async ({ page, phantom }) => {
25+
test.setTimeout(90_000)
26+
2327
await solanaSandboxSetup(page, phantom)
2428

2529
await page.getByRole('button', { name: 'Sign All Transaction' }).click()
@@ -33,6 +37,8 @@ test('should Reject All Transactions ', async ({ page, phantom }) => {
3337
})
3438

3539
test('should reject contract deployment', async ({ page, phantom }) => {
40+
test.setTimeout(90_000)
41+
3642
await connectPhantomToTestDapp(page, phantom)
3743

3844
await expect(page.locator('#tokenAddresses')).toBeEmpty()

0 commit comments

Comments
 (0)