Skip to content

Commit ce88512

Browse files
committed
chore: update proposal creation page access test
1 parent cdd5640 commit ce88512

File tree

1 file changed

+40
-33
lines changed

1 file changed

+40
-33
lines changed

tests/govtool-frontend/playwright/tests/12-proposal-budget-submission/proposalBudgetSubmission.loggedin.spec.ts

Lines changed: 40 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,43 +28,50 @@ test.describe("Budget proposal 01 wallet", () => {
2828
test("12B. Should access proposal creation page in connected state", async ({
2929
page,
3030
}) => {
31-
const budgetProposalSubmissionPage = new BudgetDiscussionSubmissionPage(
32-
page
33-
);
34-
await budgetProposalSubmissionPage.goto();
35-
await expect(
36-
budgetProposalSubmissionPage.beneficiaryFullNameInput
37-
).toBeVisible();
38-
});
31+
await page.goto("/");
32+
await page.getByTestId("budget-discussion-link").click();
33+
await page.getByTestId("verify-identity-button").click();
3934

40-
test.describe("Budget proposal field verification", () => {
41-
test("12D_1. Should verify all field of “contact information” section", async ({}) => {});
42-
test("12D_2. Should verify all field of “proposal ownership” section", async ({}) => {});
43-
test("12D_3. Should verify all field of “problem statements and proposal benefits” section", async ({}) => {});
44-
test("12D_4. Should verify all field of “costing” section", async ({}) => {});
45-
test("12D_5. Should verify all field of “further information” section", async ({}) => {});
46-
test("12D_6. Should verify all field of “administration and auditing” section", async ({}) => {});
47-
test("12D_7. Should verify all field of “submit” section", async ({}) => {});
35+
await expect(
36+
page.getByTestId("propose-a-budget-discussion-button")
37+
).toBeVisible({ timeout: 60_000 });
4838
});
4939

50-
test.describe("Budget proposal field validation", () => {
51-
test("12E_1. Should accept valid data in “contact information” section", async ({}) => {});
52-
test("12E_2. Should accept valid data in “proposal ownership” section", async ({}) => {});
53-
test("12E_3. Should accept valid data in “problem statements and proposal benefits” section", async ({}) => {});
54-
test("12E_4. Should accept valid data in “costing” section", async ({}) => {});
55-
test("12E_5. Should accept valid data in “further information” section", async ({}) => {});
56-
test("12E_6. Should accept valid data in “administration and auditing” section", async ({}) => {});
57-
test("12E_7. Should accept valid data in “submit” section", async ({}) => {});
58-
test("12F_1. Should reject invalid data in “contact information” section", async ({}) => {});
59-
test("12F_2. Should reject invalid data in “proposal ownership” section", async ({}) => {});
60-
test("12F_3. Should reject invalid data in “problem statements and proposal benefits” section", async ({}) => {});
61-
test("12F_4. Should reject invalid data in “costing” section", async ({}) => {});
62-
test("12F_5. Should reject invalid data in “further information” section", async ({}) => {});
63-
test("12F_6. Should reject invalid data in “administration and auditing” section", async ({}) => {});
64-
test("12F_7. Should reject invalid data in “submit” section", async ({}) => {});
40+
test.describe("Budget proposal with proposalSubmissionPageNavigation", () => {
41+
let budgetProposalSubmissionPage: BudgetDiscussionSubmissionPage;
42+
test.beforeEach(async ({ page }) => {
43+
const budgetSubmissionPage = new BudgetDiscussionSubmissionPage(page);
44+
await budgetSubmissionPage.goto();
45+
});
46+
test.describe("Budget proposal field verification", () => {
47+
test("12D_1. Should verify all field of “contact information” section", async ({}) => {});
48+
test("12D_2. Should verify all field of “proposal ownership” section", async ({}) => {});
49+
test("12D_3. Should verify all field of “problem statements and proposal benefits” section", async ({}) => {});
50+
test("12D_4. Should verify all field of “costing” section", async ({}) => {});
51+
test("12D_5. Should verify all field of “further information” section", async ({}) => {});
52+
test("12D_6. Should verify all field of “administration and auditing” section", async ({}) => {});
53+
test("12D_7. Should verify all field of “submit” section", async ({}) => {});
54+
});
55+
56+
test.describe("Budget proposal field validation", () => {
57+
test("12E_1. Should accept valid data in “contact information” section", async ({}) => {});
58+
test("12E_2. Should accept valid data in “proposal ownership” section", async ({}) => {});
59+
test("12E_3. Should accept valid data in “problem statements and proposal benefits” section", async ({}) => {});
60+
test("12E_4. Should accept valid data in “costing” section", async ({}) => {});
61+
test("12E_5. Should accept valid data in “further information” section", async ({}) => {});
62+
test("12E_6. Should accept valid data in “administration and auditing” section", async ({}) => {});
63+
test("12E_7. Should accept valid data in “submit” section", async ({}) => {});
64+
test("12F_1. Should reject invalid data in “contact information” section", async ({}) => {});
65+
test("12F_2. Should reject invalid data in “proposal ownership” section", async ({}) => {});
66+
test("12F_3. Should reject invalid data in “problem statements and proposal benefits” section", async ({}) => {});
67+
test("12F_4. Should reject invalid data in “costing” section", async ({}) => {});
68+
test("12F_5. Should reject invalid data in “further information” section", async ({}) => {});
69+
test("12F_6. Should reject invalid data in “administration and auditing” section", async ({}) => {});
70+
test("12F_7. Should reject invalid data in “submit” section", async ({}) => {});
71+
});
72+
73+
test("12G. Should validate and review submitted budget proposal", async ({}) => {});
6574
});
66-
67-
test("12G. Should validate and review submitted budget proposal", async ({}) => {});
6875
});
6976

7077
test("12C. Should save and view draft proposal", async ({ browser }) => {

0 commit comments

Comments
 (0)