Skip to content

Commit 96fcaf8

Browse files
committed
feat: randomize proposal type selection in createProposal method
1 parent d519c20 commit 96fcaf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ export default class ProposalSubmissionPage {
427427

428428
async createProposal(
429429
wallet: StaticWallet,
430-
proposalType: ProposalType = ProposalType.treasury
430+
proposalType: ProposalType = Object.values(ProposalType)[
431+
Math.floor(Math.random() * Object.values(ProposalType).length)
432+
]
431433
): Promise<number> {
432434
await this.addLinkBtn.click();
433435
const receivingAddr = ShelleyWallet.fromJson(wallet).rewardAddressBech32(

0 commit comments

Comments
 (0)