Skip to content

Commit

Permalink
Add another sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse committed May 17, 2024
1 parent c395ee5 commit 37ff079
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/docs/playwright/with-metamask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ describe(`Browser: ${browserType.name()} with Metamask`, () => {

await metamask.switchToNetwork('Sepolia Test Network')

await sleep(1000)
if(await page.isVisible(XPath.text('button', 'Connect with Metamask'))) {
await page.click(XPath.text('button', 'Connect with Metamask'))
}

await waitForExpect(async () => {
expect(await page.isVisible(`//*[text()='ChainId: ' and text()='11155111']`)).to.be.true
})
Expand Down

0 comments on commit 37ff079

Please sign in to comment.