File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,14 @@ export async function mockStacksPendingTransaction(page: Page) {
165
165
) ;
166
166
}
167
167
168
+ export async function mockStacksBroadcastTransactionV6 ( page : Page ) {
169
+ await page . route ( `**/api.hiro.so/v2/transactions` , route =>
170
+ route . fulfill ( {
171
+ body : '9b709768122e6c62a37b087106cc9c23280ed6242b565484b6cc4e6a43ae1155' ,
172
+ } )
173
+ ) ;
174
+ }
175
+
168
176
export async function mockStacksBroadcastTransaction ( page : Page ) {
169
177
await page . route ( `**/api.mainnet.hiro.so/v2/transactions` , route =>
170
178
route . fulfill ( {
Original file line number Diff line number Diff line change 1
1
import { expect } from '@playwright/test' ;
2
- import { mockStacksBroadcastTransaction } from '@tests/mocks/mock-stacks-txs' ;
2
+ import { mockStacksBroadcastTransactionV6 } from '@tests/mocks/mock-stacks-txs' ;
3
3
4
4
import { test } from '../../fixtures/fixtures' ;
5
5
@@ -8,7 +8,7 @@ test.describe('Swaps', () => {
8
8
test . setTimeout ( 60_000 ) ;
9
9
10
10
await globalPage . setupAndUseApiCalls ( extensionId ) ;
11
- await mockStacksBroadcastTransaction ( globalPage . page ) ;
11
+ await mockStacksBroadcastTransactionV6 ( globalPage . page ) ;
12
12
await onboardingPage . signInWithTestAccount ( extensionId ) ;
13
13
await homePage . swapButton . click ( ) ;
14
14
await swapPage . waitForSwapPageReady ( ) ;
You can’t perform that action at this time.
0 commit comments