Commit 485d840
test(e2e): remove Tenderly hosts from E2E allowlist (MMQA-1787)
Removes all four Tenderly entries from ALLOWLISTED_HOSTS by replacing
the live network dependency with a default RPC mock and confirming
the existing fixtures don't actually need Tenderly fork state.
- api.tenderly.co + rpc.tenderly.co: zero references in tests/app code,
delete as vestigial
- virtual.linea.rpc.tenderly.co: already mocked by cardholder-mocks.ts
for the only specs that exercise it (card-home-add-funds, card-button)
- virtual.mainnet.rpc.tenderly.co: add a regex default mock returning
eth_chainId 0x1 and standard JSON-RPC stubs (Tenderly Mainnet is
semantically chain 1, so 0x1 is correct). Used by the on-ramp specs,
which assert UI state, not chain state.
Also removes the Detox blacklist entry for rpc.tenderly.co and deletes
tests/helpers/tenderly/tenderly.js — the helper's only function
(Tenderly.addFunds) was never called, making tenderly_setBalance dead
code.
ALLOWLISTED_HOSTS is now down to 7 entries.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3e8cfca commit 485d840
4 files changed
Lines changed: 9 additions & 31 deletions
File tree
- tests
- api-mocking
- mock-responses/defaults
- helpers/tenderly
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
0 commit comments