Skip to content

Commit fc836e3

Browse files
committed
fix: increase timeout and assert popup modal hidden
1 parent 0c893e8 commit fc836e3

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

tests/govtool-frontend/playwright/lib/pages/dRepDirectoryPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default class DRepDirectoryPage {
217217
!isEmptyContainerVisible &&
218218
`DRep with id ${dRepId} is found in the list`,
219219
}).toBeVisible({
220-
timeout: 20_000,
220+
timeout: 60_000,
221221
});
222222
}
223223
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,18 @@ test("2N. Should show DRep information on details page", async ({
7373
// Add an assertion to prevent clicking on "View Your dRep Details".
7474
await expect(
7575
dRepPage.getByTestId("dRep-id-display-card-dashboard")
76-
).toContainText(wallet.dRepId, { timeout: 20_000 });
76+
).toContainText(wallet.dRepId, { timeout: 60_000 });
7777
await dRepPage.getByTestId("view-drep-details-button").click();
7878

7979
// Verification
8080
await expect(dRepPage.getByTestId("copy-drep-id-button")).toHaveText(
8181
wallet.dRepId
8282
);
8383
await expect(dRepPage.getByTestId("copy-payment-address-button")).toHaveText(
84-
paymentAddress
84+
paymentAddress,
85+
{
86+
timeout: 60_000,
87+
}
8588
);
8689
await expect(dRepPage.getByTestId("Active-pill")).toHaveText("Active");
8790
await expect(dRepPage.getByTestId("voting-power")).toHaveText("₳ 0");

tests/govtool-frontend/playwright/tests/3-drep-registration/dRepRegistration.dRep.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ test.describe("Temporary DReps", () => {
147147
await dRepRegistrationPage.confirmBtn.click();
148148

149149
await expect(dRepPage.getByTestId("d-rep-in-progress")).not.toBeVisible({
150-
timeout: 20_000,
150+
timeout: 60_000,
151151
});
152152

153153
// connected state

tests/govtool-frontend/playwright/tests/3-drep-registration/editDRep.dRep.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test.describe("Validation of edit dRep Form", () => {
2525
await editDRepPage.goto();
2626

2727
// wait until wallet alert close
28-
await page.waitForTimeout(5_000);
28+
await expect(page.getByTestId("alert-success")).not.toBeVisible();
2929

3030
for (let i = 0; i < 100; i++) {
3131
await editDRepPage.validateForm({
@@ -73,7 +73,7 @@ test.describe("Validation of edit dRep Form", () => {
7373
const editDRepPage = new EditDRepPage(page);
7474
await editDRepPage.goto();
7575

76-
await expect(editDRepPage.nameInput).toBeVisible({ timeout: 60_000 }); // assert to wait for the page to load
76+
await expect(page.getByTestId("alert-success")).not.toBeVisible();
7777

7878
for (let i = 0; i < 100; i++) {
7979
await editDRepPage.inValidateForm({

0 commit comments

Comments
 (0)