Skip to content

Commit

Permalink
🪿 Update add new network test (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse committed May 14, 2024
1 parent 4840545 commit 999b916
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

3 comments on commit 999b916

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.