Skip to content

Commit a4e9b92

Browse files
committed
removed pause
1 parent 1bd8de9 commit a4e9b92

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

bridge-ui/test/e2e/bridge-l1-l2.spec.ts

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -137,41 +137,41 @@ describe("L1 > L2 via Native Bridge", () => {
137137
await waitForNewTxAdditionToTxList(txnsLengthBefore);
138138
});
139139

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+
});
177177
});

bridge-ui/test/utils/selectTokenAndWaitForBalance.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export async function selectTokenAndWaitForBalance(tokenSymbol: string, page: Pa
1313
// TO investigate - This part seems ~1% flaky, have seen at least one occasion where this returned 0 balance with non-zero ETH balance
1414
// So assumption that USDC balance is retrieved at the same time as ETH balance may be incorrect.
1515
const tokenBalance = page.getByTestId(`token-details-${tokenSymbol.toLowerCase()}-amount`);
16-
await page.pause();
1716
if ((await tokenBalance.textContent()) === `0 ${tokenSymbol}`) {
1817
throw `No ${tokenSymbol} balance, please add some funds before running the test`;
1918
}

0 commit comments

Comments
 (0)