diff --git a/packages/docs/playwright/with-metamask.test.ts b/packages/docs/playwright/with-metamask.test.ts index 4279793dd..b45a0d83b 100644 --- a/packages/docs/playwright/with-metamask.test.ts +++ b/packages/docs/playwright/with-metamask.test.ts @@ -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 })