Skip to content

Commit 1449fed

Browse files
committed
feat: add and handle motionOfNoConfidence type proposal
1 parent 8b53e30 commit 1449fed

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export default class ProposalSubmissionPage {
5858
readonly updateTheConstitutionBtn = this.page.getByTestId(
5959
"updates to the constitution-button"
6060
);
61+
readonly motionOfNoConfidenceBtn = this.page.getByTestId(
62+
"motion of no confidence-button"
63+
);
6164
readonly editSubmissionButton = this.page.getByTestId(
6265
"edit-submission-button"
6366
);
@@ -174,11 +177,13 @@ export default class ProposalSubmissionPage {
174177
await this.infoBtn.click();
175178
} else if (governanceProposal.gov_action_type_id === 1) {
176179
await this.treasuryBtn.click();
177-
} else {
180+
} else if (governanceProposal.gov_action_type_id === 2) {
178181
await this.updateTheConstitutionBtn.click();
179182
if (governanceProposal.has_guardrails) {
180183
await this.guardrailsScriptCheckbox.click();
181184
}
185+
} else {
186+
await this.motionOfNoConfidenceBtn.click();
182187
}
183188

184189
await this.fillupFormWithTypeSelected(governanceProposal);

tests/govtool-frontend/playwright/lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export enum ProposalType {
7373
info = "Info Action",
7474
treasury = "Treasury requests",
7575
updatesToTheConstitution = "Updates to the Constitution",
76+
motionOfNoConfedence = "Motion of No Confidence",
7677
}
7778

7879
export enum BootstrapGovernanceActionType {

0 commit comments

Comments
 (0)