Skip to content

Commit

Permalink
🪿 Update add new network test
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse committed May 14, 2024
1 parent 4840545 commit 894fdfa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/docs/playwright/with-metamask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,8 @@ describe(`Browser: ${browserType.name()} with Metamask`, () => {
const popupPage = await popupPromise

await sleep(2000) // Wait for the popup to be fully loaded.
expect(
// if this link is visible, then the network does not match metamask records
await popupPage.isVisible(`//a[@href='https://metamask.zendesk.com/hc/en-us/articles/360057142392']`)
).to.be.false

await popupPage.click(XPath.text('a', 'View all'))
await popupPage.click(XPath.text('a', 'View all details'))
await waitForExpect(async () => {
expect(await popupPage.isVisible(`//*[text()='${Optimism.chainName}']`)).to.be.true
expect(await popupPage.isVisible(`//*[text()='${Optimism.rpcUrl}']`)).to.be.true
Expand Down

0 comments on commit 894fdfa

Please sign in to comment.