From 6ae83ed5fa908533cd6cc31d5022f8a322f07d08 Mon Sep 17 00:00:00 2001 From: niraj Date: Wed, 10 Jul 2024 14:26:54 +0545 Subject: [PATCH 1/2] chore: add 2s wait timeout after navigated to proposal discussion --- .../playwright/lib/pages/proposalSubmissionPage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts b/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts index 4beae7900..ed318b068 100644 --- a/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts +++ b/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts @@ -73,6 +73,8 @@ export default class ProposalSubmissionPage { async goto() { await this.page.goto(`${environments.frontendUrl}/proposal_discussion`); + await this.page.waitForTimeout(2_000); // wait until page load properly + await this.verifyIdentityBtn.click(); await this.proposalCreateBtn.click(); From 073338fee866a0e756fa66048c40fd16e39fad26 Mon Sep 17 00:00:00 2001 From: niraj Date: Wed, 10 Jul 2024 14:29:08 +0545 Subject: [PATCH 2/2] fix: verify identity on navigation to proposal creation --- .../7-proposal-submission/proposalSubmission.loggedin.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/govtool-frontend/playwright/tests/7-proposal-submission/proposalSubmission.loggedin.spec.ts b/tests/govtool-frontend/playwright/tests/7-proposal-submission/proposalSubmission.loggedin.spec.ts index 65fb72b3b..943887729 100644 --- a/tests/govtool-frontend/playwright/tests/7-proposal-submission/proposalSubmission.loggedin.spec.ts +++ b/tests/govtool-frontend/playwright/tests/7-proposal-submission/proposalSubmission.loggedin.spec.ts @@ -279,7 +279,8 @@ test.describe("Temporary proposal users", () => { test.beforeEach(async () => { proposalSubmissionPage = new ProposalSubmissionPage(userPage); - await proposalSubmissionPage.goto(); + await proposalSubmissionPage.proposalCreateBtn.click(); + await proposalSubmissionPage.continueBtn.click(); await proposalSubmissionPage.addLinkBtn.click(); proposalFormValue =