Commit 80f5c73
committed
test(predict): align e2e mocks/fixtures with pUSD + CLOB v2 migration
After removing CLOB v1 and migrating Predict deposit/withdraw to pUSD,
several smoke tests broke because the e2e mocks/fixtures still assumed
the old USDC.e + CLOB v1 world.
- POLYMARKET_USDC_BALANCE_MOCKS: route balanceOf for the pUSD address to
the global mock balance, and zero out legacy USDC.e so deposit/
withdraw/claim/trade flows skip the new legacy-sweep maintenance path.
- POLYMARKET_UPDATE_USDC_BALANCE_MOCKS / POLYMARKET_WITHDRAW_BALANCE_LOAD_MOCKS:
match pUSD balanceOf instead of USDC.e, since the app now reads the
Predict balance from pUSD.
- POLYMARKET_POST_CASH_OUT_MOCKS: update SELL order matcher to the v2
shape (timestamp/metadata/builder; no taker/nonce/feeRateBps).
Without this, the cash-out sheet never dismissed and the predict
market details Back button wasn't reachable.
- RELAY_QUOTE_MOCK currencyOut: switch from USDC.e to pUSD so the
transaction-pay quote target matches the Predict deposit transaction
target token (otherwise the pay-with row never resolves).
- transaction-pay.spec.ts / predict-withdraw.spec.ts fixtures: seed
pUSD instead of USDC.e in TokensController so confirmation amount
encoding picks up decimals=6 immediately.1 parent d9f1abb commit 80f5c73
4 files changed
Lines changed: 68 additions & 30 deletions
File tree
- tests
- api-mocking/mock-responses
- polymarket
- smoke
- confirmations/transactions
- predict
Lines changed: 44 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
969 | | - | |
| 969 | + | |
970 | 970 | | |
971 | | - | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
972 | 974 | | |
973 | 975 | | |
974 | 976 | | |
975 | 977 | | |
976 | | - | |
977 | | - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
978 | 996 | | |
979 | 997 | | |
980 | 998 | | |
981 | | - | |
| 999 | + | |
982 | 1000 | | |
983 | 1001 | | |
984 | | - | |
985 | | - | |
| 1002 | + | |
| 1003 | + | |
986 | 1004 | | |
987 | 1005 | | |
988 | 1006 | | |
| |||
1475 | 1493 | | |
1476 | 1494 | | |
1477 | 1495 | | |
1478 | | - | |
| 1496 | + | |
1479 | 1497 | | |
1480 | 1498 | | |
1481 | 1499 | | |
| |||
1485 | 1503 | | |
1486 | 1504 | | |
1487 | 1505 | | |
1488 | | - | |
| 1506 | + | |
1489 | 1507 | | |
1490 | | - | |
| 1508 | + | |
1491 | 1509 | | |
1492 | 1510 | | |
1493 | 1511 | | |
| |||
1546 | 1564 | | |
1547 | 1565 | | |
1548 | 1566 | | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
1549 | 1573 | | |
1550 | 1574 | | |
1551 | 1575 | | |
1552 | 1576 | | |
1553 | 1577 | | |
1554 | | - | |
1555 | 1578 | | |
1556 | | - | |
1557 | | - | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
1558 | 1584 | | |
1559 | 1585 | | |
1560 | 1586 | | |
| |||
1878 | 1904 | | |
1879 | 1905 | | |
1880 | 1906 | | |
1881 | | - | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
1882 | 1910 | | |
1883 | 1911 | | |
1884 | | - | |
| 1912 | + | |
1885 | 1913 | | |
1886 | | - | |
| 1914 | + | |
1887 | 1915 | | |
1888 | 1916 | | |
1889 | 1917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
| 40 | + | |
37 | 41 | | |
38 | | - | |
39 | | - | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | | - | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments