MetaMask / MetaMask/metamask-extension

Add QR scanner E2E tests

Open
#28,528 0 comments 0 reactions 0 assignees View on GitHub
e2e-test team-extension-platform type-enhancement
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### What is this about?

Add E2E tests for the QR scanner feature. This is challenging right now because we haven't yet established a way of mocking webcam input during e2e tests (though it appears to be possible with Chrome+Selenium at least, unsure about Firefox).

### Scenario

_No response_

### Design

_No response_

### Technical Details

- At least one E2E test has been introduced that shows the QR scanner works correctly
- At least one E2E test has been written that ensures #28527 has been fixed

### Threat Modeling Framework

_No response_

### Acceptance Criteria

_No response_

### Stakeholder review needed before the work gets merged

- [X] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [X] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)

### References

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the QR scanner implementation and issue #28527, then inspect the repository's existing E2E setup. Investigate how webcam input can be mocked in Chrome and Firefox; done means adding one test that verifies the scanner and another confirming the fix for #28527.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Feature
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.