Skip to content

Commit e2a2698

Browse files
committed
refill static test wallets on rerun
1 parent c1759ab commit e2a2698

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/govtool-frontend/playwright/tests/wallet.bootstrap.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ setup("Initialize static wallets", async () => {
2323
await pollTransaction(res.txId);
2424
} catch (err) {
2525
if (err.status === 400 && err.message.includes("StakeKeyRegisteredDELEG")) {
26-
expect(true, "Wallets already initialized").toBeTruthy();
26+
const refillRes = await kuberService.transferADA(
27+
totalWalletsToInitialize.map((wallet) => wallet.address),
28+
20
29+
);
30+
await pollTransaction(refillRes.txId, refillRes.lockInfo);
31+
expect(true, "Wallets already initialized and refilled").toBeTruthy();
2732
} else {
2833
throw Error(err);
2934
}

0 commit comments

Comments
 (0)