File tree Expand file tree Collapse file tree
tests/smoke/confirmations/transactions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ import {
88} from '../../../api-mocking/mock-responses/feature-flags-mocks' ;
99import { Mockttp } from 'mockttp' ;
1010import { setupRemoteFeatureFlagsMock } from '../../../api-mocking/helpers/remoteFeatureFlagsHelper' ;
11- import { POLYMARKET_COMPLETE_MOCKS } from '../../../api-mocking/mock-responses/polymarket/polymarket-mocks' ;
11+ import {
12+ POLYMARKET_COMPLETE_MOCKS ,
13+ POLYMARKET_PUSD_BALANCE_MOCKS ,
14+ } from '../../../api-mocking/mock-responses/polymarket/polymarket-mocks' ;
1215import PredictAddFunds from '../../../page-objects/Predict/PredictAddFunds' ;
1316import {
1417 mockRelayQuote ,
@@ -84,6 +87,14 @@ async function testSpecificMock(mockServer: Mockttp) {
8487 } ) ;
8588
8689 await POLYMARKET_COMPLETE_MOCKS ( mockServer ) ;
90+ // This confirmation spec exercises add-funds from an external token, so the
91+ // Predict balance must start empty. The shared Predict mocks default to a
92+ // funded pUSD balance for smoke flows, which would make the required token
93+ // skippable and collapse Transaction Pay into a gas-only path.
94+ await POLYMARKET_PUSD_BALANCE_MOCKS (
95+ mockServer ,
96+ '0x0000000000000000000000000000000000000000000000000000000000000000' ,
97+ ) ;
8798 await mockRelayQuote ( mockServer ) ;
8899 await mockRelayStatus ( mockServer ) ;
89100 // Mock all token-by-address lookups on Polygon (chainId 137) to avoid
You can’t perform that action at this time.
0 commit comments