@@ -137,41 +137,41 @@ describe("L1 > L2 via Native Bridge", () => {
137
137
await waitForNewTxAdditionToTxList ( txnsLengthBefore ) ;
138
138
} ) ;
139
139
140
- // test.skip ("should be able to claim if available READY_TO_CLAIM transactions", async ({
141
- // page,
142
- // connectMetamaskToDapp,
143
- // clickNativeBridgeButton,
144
- // openNativeBridgeFormSettings,
145
- // toggleShowTestNetworksInNativeBridgeForm,
146
- // openNativeBridgeTransactionHistory,
147
- // getBridgeTransactionsCount,
148
- // switchToLineaSepolia,
149
- // doClaimTransaction,
150
- // waitForTxListUpdateForClaimTx
151
- // }) => {
152
- // test.setTimeout(90_000);
153
-
154
- // await connectMetamaskToDapp();
155
- // await clickNativeBridgeButton();
156
- // await openNativeBridgeFormSettings();
157
- // await toggleShowTestNetworksInNativeBridgeForm();
158
-
159
- // // Switch to L2 network
160
- // await switchToLineaSepolia();
161
-
162
- // // Load tx history
163
- // await openNativeBridgeTransactionHistory();
164
- // await getBridgeTransactionsCount();
165
-
166
- // // Find and click READY_TO_CLAIM TX
167
- // const readyToClaimTx = page.getByRole("listitem").filter({hasText: "Ready to claim"});
168
- // const readyToClaimCount = await readyToClaimTx.count()
169
- // if (readyToClaimCount === 0) return;
170
- // await readyToClaimTx.first().click();
171
-
172
- // await doClaimTransaction();
173
-
174
- // // Check that tx history has updated accordingly
175
- // await waitForTxListUpdateForClaimTx(readyToClaimCount);
176
- // });
140
+ test ( "should be able to claim if available READY_TO_CLAIM transactions" , async ( {
141
+ page,
142
+ connectMetamaskToDapp,
143
+ clickNativeBridgeButton,
144
+ openNativeBridgeFormSettings,
145
+ toggleShowTestNetworksInNativeBridgeForm,
146
+ openNativeBridgeTransactionHistory,
147
+ getBridgeTransactionsCount,
148
+ switchToLineaSepolia,
149
+ doClaimTransaction,
150
+ waitForTxListUpdateForClaimTx
151
+ } ) => {
152
+ test . setTimeout ( 90_000 ) ;
153
+
154
+ await connectMetamaskToDapp ( ) ;
155
+ await clickNativeBridgeButton ( ) ;
156
+ await openNativeBridgeFormSettings ( ) ;
157
+ await toggleShowTestNetworksInNativeBridgeForm ( ) ;
158
+
159
+ // Switch to L2 network
160
+ await switchToLineaSepolia ( ) ;
161
+
162
+ // Load tx history
163
+ await openNativeBridgeTransactionHistory ( ) ;
164
+ await getBridgeTransactionsCount ( ) ;
165
+
166
+ // Find and click READY_TO_CLAIM TX
167
+ const readyToClaimTx = page . getByRole ( "listitem" ) . filter ( { hasText : "Ready to claim" } ) ;
168
+ const readyToClaimCount = await readyToClaimTx . count ( )
169
+ if ( readyToClaimCount === 0 ) return ;
170
+ await readyToClaimTx . first ( ) . click ( ) ;
171
+
172
+ await doClaimTransaction ( ) ;
173
+
174
+ // Check that tx history has updated accordingly
175
+ await waitForTxListUpdateForClaimTx ( readyToClaimCount ) ;
176
+ } ) ;
177
177
} ) ;
0 commit comments