Skip to content

Fix MetaMask selectors for 13.32 onboarding and unlock flows#71

Merged
Maksandre merged 2 commits into
mainfrom
fix-tests
May 29, 2026
Merged

Fix MetaMask selectors for 13.32 onboarding and unlock flows#71
Maksandre merged 2 commits into
mainfrom
fix-tests

Conversation

@Maksandre
Copy link
Copy Markdown
Owner

MetaMask 13.32 inserted a new passkey/biometrics screen between "Create password" and the metametrics step, renamed the menu's lock entry, and changed the "Open wallet" button's role match. Race the passkey screen during onboarding and post-unlock stabilization, and switch to stable testids for "Open wallet" and the Lock menu item.

Maksandre and others added 2 commits May 27, 2026 19:45
MetaMask 13.32 inserted a new passkey/biometrics screen between
"Create password" and the metametrics step, renamed the menu's lock
entry, and changed the "Open wallet" button's role match. Race the
passkey screen during onboarding and post-unlock stabilization, and
switch to stable testids for "Open wallet" and the Lock menu item.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CI runs against a freshly-downloaded MetaMask extension, so the MV3
service worker often hasn't finished booting when the first unlock
triggers UI evaluation. The page renders MetaMask's "Background
connection unresponsive" recovery screen, which blocks home.html and
caused `Can perform multiple operations in sequence` to time out on
`account-options-menu-button`.

Detect that recovery screen and click "Restart MetaMask" before racing
post-unlock states. Also bound `page.goto(sidepanelUrl)` to
ROUTE_RETRY_TIMEOUT so the retry loop can actually retry instead of
sitting on the Playwright default 30s/60s for a single nav.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Maksandre Maksandre merged commit 5525b44 into main May 29, 2026
4 checks passed
@Maksandre Maksandre deleted the fix-tests branch May 29, 2026 11:19
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.

1 participant