Skip to content

Update dappwright dependency and enhance e2e tests for wallet account switching #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

rube-de
Copy link
Contributor

@rube-de rube-de commented Apr 10, 2025

This pull request includes updates to the examples/wagmi-v2 project to improve the test suite and update dependencies. The most important changes include updating the @tenkeylabs/dappwright dependency and enhancing the end-to-end test script to handle page navigation and account switching more robustly.

Dependency updates:

  • examples/wagmi-v2/package.json: Updated @tenkeylabs/dappwright dependency from version ^2.8.6 to ^2.10.0 which includes the fix for account selection by name
  • Fixed MetaMask version to 12.10.4 to address issues with enabling testing networks during CI setup. See TenKeyLabs/dappwright#426 for details.

Enhancements to end-to-end tests:

  • examples/wagmi-v2/test/e2e.spec.ts: Changed account selection from numeric index to account name (wallet.switchAccount("Alice")), based on the fix in Dappwright PR #440. This change resolves the issue where account switching would get stuck on the account selection screen.
  • examples/wagmi-v2/test/e2e.spec.ts: Added logic to store the current URL and handle potential page closures by reopening and navigating back to the application URL if necessary. This ensures the test continues even if the page is closed during the process.

@rube-de rube-de linked an issue Apr 10, 2025 that may be closed by this pull request
Copy link

netlify bot commented Apr 10, 2025

Deploy Preview for oasisprotocol-sapphire-paratime ready!

Name Link
🔨 Latest commit 2d237d2
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-sapphire-paratime/deploys/67f88a43d595420008c14caf
😎 Deploy Preview https://deploy-preview-569--oasisprotocol-sapphire-paratime.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@rube-de rube-de force-pushed the rube/560-ci-fix-intermittent-dappwright-errors branch from 36e43bc to f325ef0 Compare April 11, 2025 03:12
@rube-de rube-de force-pushed the rube/560-ci-fix-intermittent-dappwright-errors branch from f325ef0 to 2d237d2 Compare April 11, 2025 03:19
@rube-de rube-de marked this pull request as ready for review April 11, 2025 03:25
@rube-de rube-de requested review from aefhm and matevz April 11, 2025 03:25
@rube-de rube-de merged commit c44f4b2 into main Apr 11, 2025
16 checks passed
@rube-de rube-de deleted the rube/560-ci-fix-intermittent-dappwright-errors branch April 11, 2025 21:58
@osis
Copy link

osis commented Apr 14, 2025

just an FYI that the issue you experienced should be fixed in https://github.com/TenKeyLabs/dappwright/releases/tag/v2.10.2

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.

ci: Fix intermittent dappwright errors
3 participants