Skip to content

Commit c52f4ba

Browse files
authored
Merge pull request #2643 from IntersectMBO/fix/drep-path-timeout-increase
Fix dRep directory url path and increase assertion timeout
2 parents a201a04 + 3a487d0 commit c52f4ba

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class DRepDirectoryPage {
4444

4545
async goto() {
4646
await this.page.goto(
47-
`${environments.frontendUrl}/connected/dRep_directory`
47+
`${environments.frontendUrl}/connected/drep_directory`
4848
);
4949
}
5050

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test("2N. Should show DRep information on details page", async ({
6969
// Add an assertion to prevent clicking on "View Your dRep Details".
7070
await expect(
7171
dRepPage.getByTestId("dRep-id-display-card-dashboard")
72-
).toContainText(wallet.dRepId, { timeout: 10_000 });
72+
).toContainText(wallet.dRepId, { timeout: 20_000 });
7373
await dRepPage.getByTestId("view-drep-details-button").click();
7474

7575
// Verification

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ test.describe("Register DRep state", () => {
178178

179179
await expect(
180180
dRepPage.getByText("You Have Retired as a Direct")
181-
).toBeVisible();
181+
).toBeVisible({ timeout: 20_000 });
182182
});
183183
});
184184

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ test.describe("Temporary DReps", () => {
138138

139139
await dRepRegistrationPage.confirmBtn.click();
140140

141-
await expect(dRepPage.getByTestId("d-rep-in-progress")).not.toBeVisible();
141+
await expect(dRepPage.getByTestId("d-rep-in-progress")).not.toBeVisible({
142+
timeout: 20_000,
143+
});
142144

143145
// connected state
144146
const dRepDirectoryPage = new DRepDirectoryPage(page);
@@ -231,7 +233,8 @@ test.describe("Temporary DReps", () => {
231233
.click();
232234

233235
await expect(dRepPage.getByTestId("d-rep-in-progress")).toHaveText(
234-
/in progress/i
236+
/in progress/i,
237+
{ timeout: 20_000 }
235238
);
236239
});
237240
});

tests/govtool-frontend/playwright/tests/5-proposal-functionality/proposalFunctionality.dRep.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,15 @@ test.describe("Perform voting", () => {
183183

184184
await expect(
185185
govActionDetailsPage.currentPage.getByTestId("my-vote").getByText("No")
186-
).toBeVisible({ timeout: 15_000 });
186+
).toBeVisible({ timeout: 20_000 });
187187
});
188188

189189
test("5F. Should show notification of casted vote after vote", async ({}, testInfo) => {
190190
test.setTimeout(testInfo.timeout + environments.txTimeOut);
191191
await govActionDetailsPage.vote();
192-
await expect(govActionDetailsPage.voteSuccessModal).toBeVisible();
192+
await expect(govActionDetailsPage.voteSuccessModal).toBeVisible({
193+
timeout: 20_000,
194+
});
193195
});
194196

195197
test("5I. Should view the vote details,when viewing governance action already voted by the DRep", async ({}, testInfo) => {

tests/govtool-frontend/playwright/tests/7-proposal-submission/proposalSubmission.ga.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Object.values(ProposalType).forEach((proposalType, index) => {
5454
await expect(userPage.getByTestId("ga-submitted-modal-title")).toHaveText(
5555
/governance action submitted!/i,
5656
{
57-
timeout: 10_000,
57+
timeout: 20_000,
5858
}
5959
);
6060

0 commit comments

Comments
 (0)