@@ -102,6 +102,7 @@ export class BridgePage {
102102 * @param testParams.expectedDestAmount - The expected quoted destination amounts in the quote page
103103 * @param testParams.submitDelay - The delay to wait before submitting the transaction, must be less than the refresh interval of the stream
104104 * @param testParams.expectedStatus - The expected state of the transaction
105+ * @param testParams.withSmartTransactions
105106 */
106107export const bridgeTransaction = async ( {
107108 driver,
@@ -142,6 +143,8 @@ export const bridgeTransaction = async ({
142143
143144 if ( withSmartTransactions ) {
144145 await bridgePage . checkTransactionCompleteAndViewActivity ( ) ;
146+ } else {
147+ await homePage . goToActivityList ( ) ;
145148 }
146149
147150 const activityList = new ActivityListPage ( driver ) ;
@@ -544,7 +547,7 @@ const emitLine = (controller: ReadableStreamDefaultController, line: string) =>
544547 * @param delay - The delay to wait between emitting each quote
545548 * @returns The Readable stream
546549 */
547- const mockSseEventSource = ( mockQuotes : unknown [ ] , delay : number = 2000 ) => {
550+ function mockSseEventSource ( mockQuotes : unknown [ ] , delay : number = 2000 ) {
548551 let index = 0 ;
549552 return Readable . fromWeb (
550553 new ReadableStreamWeb ( {
@@ -561,7 +564,7 @@ const mockSseEventSource = (mockQuotes: unknown[], delay: number = 2000) => {
561564 } ,
562565 } ) ,
563566 ) ;
564- } ;
567+ }
565568
566569async function mockFeatureFlags (
567570 mockServer : Mockttp ,
@@ -575,7 +578,11 @@ async function mockFeatureFlags(
575578 ok : true ,
576579 statusCode : 200 ,
577580 json : [
578- { bridgeConfig : featureFlags , extensionUxPna25 : true , ...additionalFlags } ,
581+ {
582+ bridgeConfig : featureFlags ,
583+ extensionUxPna25 : true ,
584+ ...additionalFlags ,
585+ } ,
579586 ] ,
580587 } ;
581588 } ) ;
@@ -1064,6 +1071,10 @@ const STX_TRANSACTION_HASH =
10641071 * via eth_sendRawTransaction. Anvil mines it immediately, so the real tx hash is
10651072 * on-chain and eth_getTransactionReceipt returns a genuine receipt — which is what
10661073 * the extension's TransactionController needs to mark the transaction as Confirmed.
1074+ * @param mockServer
1075+ * @param chainId
1076+ * @param sentinelUrl
1077+ * @param batchStatusOverride
10671078 */
10681079async function mockSmartTransactionsForBridge (
10691080 mockServer : Mockttp ,
@@ -1420,7 +1431,11 @@ export const getQuoteNegativeCasesFixtures = (
14201431 testSpecificMock : async ( mockServer : Mockttp ) => {
14211432 const mocks = [
14221433 await mockTopAssetsLinea ( mockServer ) ,
1423- await mockGetQuoteInvalid ( mockServer , options , featureFlags . sse ?. enabled ) ,
1434+ await mockGetQuoteInvalid (
1435+ mockServer ,
1436+ options ,
1437+ featureFlags . sse ?. enabled ,
1438+ ) ,
14241439 await mockTokensLinea ( mockServer ) ,
14251440 await mockGetPopularTokens ( mockServer ) ,
14261441 await mockPriceSpotPrices ( mockServer ) ,
@@ -1776,7 +1791,11 @@ export const getBridgeL2Fixtures = (
17761791 mocks . push ( ...( await mockSearchTokens ( mockServer ) ) ) ;
17771792
17781793 if ( withSmartTransactions ) {
1779- await mockSmartTransactionsForBridge ( mockServer , 59144 , LINEA_SENTINEL_URL ) ;
1794+ await mockSmartTransactionsForBridge (
1795+ mockServer ,
1796+ 59144 ,
1797+ LINEA_SENTINEL_URL ,
1798+ ) ;
17801799 }
17811800
17821801 return mocks . filter ( Boolean ) ;
0 commit comments