Commit ffe70fa
authored
chore: moves api-mocking and framework to tests (#25031)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
Following #24313 we're
looking to centralize all tools and test resources in one place.
This PR moves `framework` and `api-mocking` to `/tests`.
Previous related PRs:
- #24988
- #24313
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry:
## **Related issues**
Fixes:
## **Manual testing steps**
```gherkin
Feature: my feature name
Scenario: user [verb for user action]
Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
```
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Consolidates E2E tooling under `tests/` and updates the codebase
accordingly.
>
> - Migrates TypeScript E2E framework and API mocking from
`e2e/framework` and `e2e/api-mocking` to `tests/framework` and
`tests/api-mocking`
> - Updates imports across E2E specs, page objects, helpers, Playwright
config, and select app-side test utilities to reference
`tests/framework/*` and `tests/api-mocking/*`
> - Adjusts `.eslintrc.js` extends path, BUGBOT rules, and E2E
documentation links to the new locations
> - Updates CODEOWNERS and security code scanner ignore paths to reflect
`tests/`
> - Removes obsolete `e2e/framework` re-export files no longer used
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
635d96f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 51aa798 commit ffe70fa
576 files changed
Lines changed: 1811 additions & 1764 deletions
File tree
- .cursor
- rules
- .github
- workflows
- appwright
- tests
- mm-connect
- performance
- login/launch-times
- onboarding/launch-times
- utils
- flows
- app
- components/UI/Perps/utils
- features/SampleFeature/e2e
- pages
- specs
- util
- bridge/hooks
- test
- docs/readme
- e2e
- api-specs
- docs
- framework
- config
- services/providers/emulator
- pages
- Browser
- Confirmations
- ExternalWebsites
- Security
- Card
- Common
- Confirmation
- ErrorBoundaryView
- MultichainAccounts
- Network
- Notifications
- Onboarding
- Perps
- Predict
- Ramps
- Receive
- Rewards
- Send
- Settings
- Advanced
- Contacts
- DeveloperOptions
- SecurityAndPrivacy
- Stake
- Transactions
- Trending
- UI
- importAccount
- importSrp
- swaps
- wallet
- ImportNFTFlow
- ImportTokenFlow
- MultiSrp
- AddAccountToSrp
- Common
- resources
- seeder
- specs
- accounts
- aes
- analytics
- assets
- defi
- multichain
- card
- confirmations-redesigned
- regression
- signatures
- transactions
- 7702
- token-approve
- confirmations
- regression
- signatures
- connections
- identity
- account-syncing
- contact-syncing
- utils
- multichain-accounts
- multichain
- connections
- permissions
- accounts
- chains
- solana-wallet-standard
- multisrp
- networks
- notifications
- utils
- performance
- account-list
- network-list
- perps
- helpers
- predict
- helpers
- quarantine
- browser
- multichain
- permissions/chains
- ramps
- rewards
- send
- settings
- snaps
- stake
- swaps
- helpers
- trending
- wallet
- tools/e2e-ai-analyzer
- utils
- tests
- api-mocking
- helpers
- mock-config
- mock-responses
- defaults
- polymarket
- market-feed-responses
- ramps
- framework
- config
- fixtures
- fixture
- services
- appium
- common
- base
- interfaces
- providers
- browserstack
- emulator
- wdio/screen-objects
- BrowserObject
- Modals
- Native
- Onboarding
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments