-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
test: add catch all mock and temporary whitelist #26647
base: develop
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. |
Notes from refinement session:
Suggested next steps:
|
} else if ( | ||
WHITE_LISTED_URLS.includes(url) || | ||
WHITE_LISTED_HOSTS.includes(host) || | ||
host.includes('gvt1.com') |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High test
gvt1.com
Quality Gate passedIssues Measures |
Description
With this PR we add a catch all mock, which will prevent any test to send real requests to an API.
Status: all the failing tests indicate that they were using a real API, so they will need to add a mock. This task should be splitted into several teams, depending on the owner of the spec.
Once all the missing mocks are added, we'll be able to merge this PR.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2762
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist