Skip to content

Conversation

@pettinarip
Copy link
Member

Fix flaky e2e tests that were failing on mobile browsers.

Description

  • Add aria-label and data-testid to mobile menu dialog for reliable test selectors
  • Fix race conditions in filter tests by waiting for checkboxes to render before extracting text
  • Use toHaveText assertion instead of textContent() to avoid timing issues
  • Update wallet modal test to match actual "Coinbase" label (was "Coinbase Wallet")

@netlify
Copy link

netlify bot commented Dec 15, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 1d78731
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6940525e0ff9e90008732c5d
😎 Deploy Preview https://deploy-preview-16897--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 41 (🔴 down 14 from production)
Accessibility: 94 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

await expect(walletModal.getByText("Connect a Wallet")).toBeVisible()
await expect(walletModal.getByText("MetaMask")).toBeVisible()
await expect(walletModal.getByText("Coinbase Wallet")).toBeVisible()
await expect(walletModal.getByText("Coinbase")).toBeVisible()
Copy link
Member

Choose a reason for hiding this comment

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

@pettinarip Hm, what am I missing? Looks like the wallet is named "Coinbase Wallet" in our wallet data

image image

Also, looks like we should probably update that separately: https://www.coinbase.com/wallet ("Coinbase Wallet is now Base app")

Copy link
Member Author

Choose a reason for hiding this comment

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

@wackerow this is for the /start page. The test is matching a few wallet names that appear in the connect modal.

@wackerow wackerow merged commit 2b54311 into dev Dec 15, 2025
10 checks passed
@wackerow wackerow deleted the fix-e2e-tests-2 branch December 15, 2025 21:28
This was referenced Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants