MetaMask / MetaMask/metamask-extension

Refactor e2e mock server

Open
#17,843 1 comment 0 reactions 0 assignees View on GitHub
team-extension-platform type-enhancement
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

See https://github.com/MetaMask/metamask-extension/pull/17835/files#r1113045235

Refactor the e2e mock server so we can have granular control over mock requests;

AC:
- [ ] add documentation for the e2e mock server
- [ ] mocks can be set before the extension is installed
- [ ] mocks can be set during the test
- [ ] mocks can be specified locally for single tests
- [ ] mocks can be specified globally for all tests
- [ ] you can make assertions on an individual mock

Contributor guide

Open the contributing guide

Research direction

Start with the files and discussion linked from PR #17835 to find the current e2e mock server entry point. Review how mocks are configured now, then use the acceptance criteria to verify setup timing, local and global scope, assertions, and documentation are all covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.