Skip to content

Commit d11b91e

Browse files
committed
fix: add missing testId of insufficient wallet balance dialog
1 parent 263e3db commit d11b91e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,14 @@ test.describe("Proposal created logged state", () => {
329329
try {
330330
await proposalDiscussionDetailsPage.submitAsGABtn.click();
331331
await expect(
332-
proposalCreationPage.currentPage.getByText(
333-
"Insufficient wallet balance",
334-
{ exact: true }
332+
proposalCreationPage.currentPage.getByTestId(
333+
"insufficient-wallet-balance-title"
335334
)
336-
).toBeVisible(); // BUG missing test id
335+
).toHaveText(/Insufficient wallet balance/);
337336

338337
await proposalCreationPage.currentPage
339-
.getByRole("button", { name: "Close" })
340-
.click(); // BUG missing test id
338+
.getByTestId("insufficient-wallet-balance-dialog-button")
339+
.click();
341340
} finally {
342341
await proposalDiscussionDetailsPage.deleteProposal();
343342
}

0 commit comments

Comments
 (0)