You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then each test only specifies its delta from this baseline.
197
197
198
+
### describe / it and platform (iOS + Android)
199
+
200
+
Import from `tests/component-view/platform`. All helpers accept an optional **filter** (3rd arg): `'ios'` | `'android'` | `['ios','android']` | `{ only: 'ios' }` | `{ skip: ['android'] }`. Env: `TEST_OS=ios` or `TEST_OS=android` to run only one OS.
|`describeForPlatforms(name, define, filter?)`| One describe per OS. Inside, `define({ os })`; use `it()` or `itForPlatforms()` — each runs once per that OS. |
205
+
|`itForPlatforms(name, (ctx) => {}, filter?)`| One `it` per OS. Callback receives `{ os }`. |
206
+
|`itOnlyForPlatforms(name, fn, filter?)`| Same as `itForPlatforms` but registers `it.only`. |
207
+
|`itEach(table)(name, (row) => {}, filter?)`| One `it` per table row × per OS. Use `$key` in name to interpolate row fields. |
208
+
|`describeEach(table)(name, (row) => { it('...', () => {}); }, filter?)`| One describe per row × per OS. Use `$key` in name. |
209
+
|`getTargetPlatforms(filter?)`| Returns `['ios','android']` (or filtered list) for custom loops. |
210
+
211
+
Example — `itEach` (each case runs on iOS and Android):
|**Writing or updating a spec**|[references/writing-tests.md](references/writing-tests.md)| New spec file, spec structure, FixtureBuilder patterns, smoke/regression templates. |
90
-
|**Page Objects and selectors**|[references/page-objects.md](references/page-objects.md)| Create or update POM classes, selector/testId conventions, Matchers/Gestures/Assertions API. |
91
-
|**API and feature flag mocking**|[references/mocking.md](references/mocking.md)| testSpecificMock, setupRemoteFeatureFlagsMock, setupMockRequest, shared mock files. |
92
-
|**Running tests, debugging, fixing failures**|[references/running-tests.md](references/running-tests.md)| Build check, detox run commands, lint/tsc, common failures table, retry patterns, iteration loop. |
|**Writing or updating a spec**|[references/writing-tests.md](references/writing-tests.md)| New spec file, spec structure, FixtureBuilder patterns, smoke/regression templates. |
95
+
|**Page Objects and selectors**|[references/page-objects.md](references/page-objects.md)| Create or update POM classes, selector/testId conventions, Matchers/Gestures/Assertions API. |
96
+
|**API and feature flag mocking**|[references/mocking.md](references/mocking.md)| testSpecificMock, setupRemoteFeatureFlagsMock, setupMockRequest, shared mock files. |
97
+
|**MetaMetrics / analytics expectations**|[tests/docs/analytics-e2e.md](../../../tests/docs/analytics-e2e.md)|`analyticsExpectations` on `withFixtures`, declarative checks, presets in `tests/helpers/analytics/expectations/`. |
98
+
|**Running tests, debugging, fixing failures**|[references/running-tests.md](references/running-tests.md)| Build check, detox run commands, lint/tsc, common failures table, retry patterns, iteration loop. |
Copy file name to clipboardExpand all lines: .cursor/rules/deeplink-handler-guidelines.mdc
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ This guide walks you through adding new deeplink handlers to MetaMask Mobile. Fo
12
12
13
13
## Quick Reference
14
14
15
+
The **`deposit` deeplink** (`metamask://deposit`, `/deposit`) is **deprecated** and not handled; do not add handlers under Ramp Deposit `deeplink/` for it.
0 commit comments