-
Notifications
You must be signed in to change notification settings - Fork 5.4k
fix: flaky test Multichain API Call
wallet_createSession With requested EVM scope...
issue with fill
#36818
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
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [b9ceb76]
UI Startup Metrics (1180 ± 66 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
✨ Files requiring CODEOWNER review ✨🧪 @MetaMask/qa (1 files, +3 -3)
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [aa4d8a0]
UI Startup Metrics (1244 ± 63 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
); | ||
await this.clickConnectExternallyConnectableButton(); | ||
await this.driver.delay(largeDelayMs); | ||
await this.driver.delay(veryLargeDelayMs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [c83017f]
UI Startup Metrics (1250 ± 72 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [1022e62]
UI Startup Metrics (1216 ± 64 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
* '0xc427D562164062a23a5cFf596A4a3208e72Acd28'); | ||
*/ | ||
async fill(rawLocator, input) { | ||
async fill(rawLocator, input, { retries = 0 } = {}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ I choose to make this as a param with 0 as default, because the verification path can break existing specs (those where the input is then changed after being added (ie send ens domain etc), so it cannot be used everywhere
Description
The fill method is flaky as in this spec we can see how the extension id was sent twice, making the spec fail as the dapp fails with
Error connecting: TypeError: Error in invocation of runtime.connect(optional string extensionId, optional object connectInfo): Invalid extension id: 'hebhblbkkdabgoldnojllkipeoacjiochebhblbkkdabgoldn
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds a retry/verification option to
driver.fill
and uses it in the multichain dapp page, plus increases the connect delay to reduce flakiness.test/e2e/webdriver/driver.js
):fill(rawLocator, input, { retries })
to support optional retries with value verification viagetAttribute('value')
andwaitUntil
; throws if not set after attempts. Updates JSDoc accordingly.test/e2e/page-objects/pages/test-dapp-multichain.ts
):driver.fill(..., { retries: 3 })
forextensionId
input.largeDelayMs
toveryLargeDelayMs
.Written by Cursor Bugbot for commit 1022e62. This will update automatically on new commits. Configure here.