File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
tests/govtool-frontend/playwright/lib Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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
7879export enum BootstrapGovernanceActionType {
You can’t perform that action at this time.
0 commit comments