Skip to content

Commit

Permalink
weird check
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Oct 22, 2023
1 parent 6becd6c commit dea5808
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions wallets/metamask/test/e2e/metamask.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,24 @@ describe('MetaMask', () => {
.map((page) => page.url())
.join(', ')
)
console.log('1')
await expect.poll(() => {
console.log('check length:', context.pages().length)
return context.pages().map((page) => page.url()).join(', ')
}, { timeout: 10000}).not.toMatch(/notification\.html/)
// expect(context.pages().length).toHaveLength(3)
console.log('2')
const metamaskPage = context.pages()[1] as Page
// await metamaskPage.pause()
await metamaskPage.bringToFront()
console.log(
'context.pages()',
context
.pages()
.map((page) => page.url())
.join(', ')
)
// await metamaskPage.pause()

await lock(metamaskPage)

Expand Down

0 comments on commit dea5808

Please sign in to comment.