From c16ae301e104c4cfaed1f2197cce7b17bf6a9298 Mon Sep 17 00:00:00 2001 From: nezouse Date: Fri, 17 May 2024 12:15:37 +0200 Subject: [PATCH] Add another sleep --- packages/docs/playwright/with-metamask.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/docs/playwright/with-metamask.test.ts b/packages/docs/playwright/with-metamask.test.ts index 4279793dd..69627f93f 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 })