Skip to content

Commit

Permalink
chore: add assertion for withdrawal address btn visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerose committed Dec 9, 2024
1 parent a634b63 commit 6b5c09c
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ test.describe("Proposal created logged state", () => {
await proposalSubmissionPage.validateForm(formFields);
}

if (type === ProposalType.treasury) {
for (let i = 0; i < 9; i++) {
await expect(
proposalSubmissionPage.addWithdrawalAddressBtn
).toBeVisible();
await proposalSubmissionPage.addWithdrawalAddressBtn.click();
}
}

await expect(
proposalSubmissionPage.addWithdrawalAddressBtn
).toBeHidden();

for (let i = 0; i < 6; i++) {
await expect(proposalSubmissionPage.addLinkBtn).toBeVisible();
await proposalSubmissionPage.addLinkBtn.click();
Expand Down

0 comments on commit 6b5c09c

Please sign in to comment.