Skip to content

Commit

Permalink
workaround click issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Dec 22, 2022
1 parent 7bd530e commit d311c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/helpers/teardown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default async function teardown(config) {
if (config.watch || config.watchAll) return

if (!process.env.CI || process.env.CI === 'false') {
await new Promise((res) => setTimeout(res, 20000)) // wait for the browser to close to let time for a screenshot to be taken
await new Promise((res) => setTimeout(res, 1000)) // wait for the browser to close to let time for a screenshot to be taken
}

// close the browser instance
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/tests/initialLaunch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('initial launch', () => {
expect(status).toBe('Pilot wallet is connected to a different chain')

// click the connection item to establish the connection
await $item.click()
await $item.evaluate((el) => (el as HTMLElement).click())
await new Promise((resolve) => setTimeout(resolve, 1000))

// we will see the MetaMask popup now, need to approve adding the network and then again switching to it
Expand Down

0 comments on commit d311c68

Please sign in to comment.