Skip to content

Commit 50d16a9

Browse files
committed
fix: increase timeout for delegated voting power visibility assertion
1 parent 20ac5d0 commit 50d16a9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/govtool-frontend/playwright/tests/2-delegation/delegationFunctionality.delegation.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ test.describe("Abstain delegation", () => {
264264

265265
const balance = await kuberService.getBalance(adaHolder03Wallet.address);
266266

267-
await expect(
268-
page.getByText(`You have delegated ₳${balance}`)
269-
).toBeVisible();
267+
await expect(page.getByText(`You have delegated ₳${balance}`)).toBeVisible({
268+
timeout: 20_000,
269+
});
270270
});
271271
});
272272

@@ -291,9 +291,9 @@ test.describe("No confidence delegation", () => {
291291
await waitForTxConfirmation(page);
292292

293293
const balance = await kuberService.getBalance(adaHolder04Wallet.address);
294-
await expect(
295-
page.getByText(`You have delegated ₳${balance}`)
296-
).toBeVisible();
294+
await expect(page.getByText(`You have delegated ₳${balance}`)).toBeVisible({
295+
timeout: 20_000,
296+
});
297297
});
298298
});
299299

@@ -318,13 +318,13 @@ test.describe("Delegated ADA visibility", () => {
318318
);
319319
await expect(
320320
page.getByText(`You have delegated ₳ ${adaHolderVotingPower}`)
321-
).toBeVisible();
321+
).toBeVisible({ timeout: 20_000 });
322322

323323
await page.goto("/");
324324
await expect(
325325
page.getByText(
326326
`Your Voting Power of ₳${adaHolderVotingPower} is Delegated to`
327327
)
328-
).toBeVisible();
328+
).toBeVisible({ timeout: 20_000 });
329329
});
330330
});

0 commit comments

Comments
 (0)