Skip to content

Commit e5b8898

Browse files
committed
feat: update form verification for new constitution
1 parent 463c6ee commit e5b8898

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,25 @@ test.describe("Proposal created logged state", () => {
270270

271271
await expect(proposalSubmissionPage.amountInput).toBeVisible();
272272
}
273+
274+
if (type === ProposalType.updatesToTheConstitution) {
275+
await expect(
276+
proposalSubmissionPage.constitutionUrlInput
277+
).toBeVisible();
278+
279+
await expect(
280+
proposalSubmissionPage.guardrailsScriptCheckbox
281+
).toBeVisible();
282+
283+
await proposalSubmissionPage.guardrailsScriptCheckbox.click();
284+
285+
await expect(
286+
proposalSubmissionPage.guardrailsScriptUrlInput
287+
).toBeVisible();
288+
await expect(
289+
proposalSubmissionPage.guardrailsScriptHashInput
290+
).toBeVisible();
291+
}
273292
});
274293
});
275294
});

0 commit comments

Comments
 (0)