-
Notifications
You must be signed in to change notification settings - Fork 5.2k
test: removing some entries from live request allowlist by adding missing mocks #31504
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
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. |
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/extension-platform
|
Builds ready [3262d48]
UI Startup Metrics (1164 ± 63 ms)
Bundle size diffs
|
'https://www.4byte.directory/api/v1/signatures/?hex_signature=0x39509351', | ||
'https://www.4byte.directory/api/v1/signatures/?hex_signature=0x5f575529', | ||
'https://www.4byte.directory/api/v1/signatures/?hex_signature=0x60806040', | ||
'https://www.4byte.directory/api/v1/signatures/?hex_signature=0xd0e30db0', |
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.
ℹ️ removed because we already have a mock for any signature in the mock-e2e file
'https://static.cx.metamask.io/api/v1/tokenIcons/1337/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.png', | ||
'https://static.cx.metamask.io/api/v1/tokenIcons/1337/0xc6bdb96e29c38dc43f014eed44de4106a6a8eb5f.png', | ||
'https://static.cx.metamask.io/api/v1/tokenIcons/56/0x0d8775f648430679a709e98d2b0cb6250d2887ef.png', | ||
'https://static.cx.metamask.io/api/v1/tokenIcons/56/0x6b175474e89094c44da98b954eedeac495271d0f.png', |
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.
ℹ️ 1 mock added for all the tokenIcons entries which returns a 200
'https://on-ramp.api.cx.metamask.io/eligibility/mm-card?id=0x01a92b9df8ce522a8f98161a97378bfdb2cce64f2d4293657e7eefe818d9ffbc', | ||
'https://on-ramp.api.cx.metamask.io/eligibility/mm-card?id=0xb1b1aa3036452bf32c1159266d1886279e4890ba907ed275e39fbc56906a8be2', | ||
'https://on-ramp.api.cx.metamask.io/eligibility/mm-card?id=7ea301c0-6a98-11ef-a19e-f3acaa606eca', | ||
'https://on-ramp.api.cx.metamask.io/eligibility/mm-card?id=8af26790-6a98-11ef-bee7-5553e37c0097', |
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.
ℹ️ 1 mock added for all the eligibility requests, no matter which id used
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.
LGTM
"59144": 1 | ||
}, | ||
"blocked-wallets": [ | ||
"0x106311b0651fd123d02B4c999CCA810712bb347B", |
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.
Do we actually need this huge list of addresses for a mock in a test?
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.
it's a good point, possibly not. This data matches the exact real response we have now, so we get the closest to the prod environment, but happy to reduce it to a minimal data set, and it can always be expanded in the future, if needed. wdyt?
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've reduced it to a minimal data set. Let's see if something breaks or if we can go on with this version
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.
okay some specs failed, so I had to add the required entries in the networks metadata. Now everything seems to work with the current data. There was 1 flaky test, but it seems unrelated to the changes (you can see older instances of this error in ci). I've run all jobs one more time and things are green.
I've set up another branch just to be sure, and run x5 that specific test and I could also see it failing intermittently with the same error:
https://github.com/MetaMask/metamask-extension/actions/runs/14240914690/job/39911085234?pr=31556
it seems to me some miss-configuration with the injected fixtures data, it can be tackled on a separate PR
test/e2e/mock-response-data/client-side-detection-blocklist.json
Outdated
Show resolved
Hide resolved
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.
LGTM!
3b3fb06
Builds ready [47e15fe]
UI Startup Metrics (1192 ± 60 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Removing some entries from the live server allow list from our e2e, and adding their corresponding global mocks.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
n/a
Pre-merge author checklist
Pre-merge reviewer checklist