From a634b63f0888ed1d2fede50a19ccee359c30574f Mon Sep 17 00:00:00 2001 From: Niraj Date: Mon, 9 Dec 2024 12:16:14 +0545 Subject: [PATCH] chore: update tesId of receiving address and amout input/error message --- .../playwright/lib/pages/proposalSubmissionPage.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts b/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts index 14b694591..213de74e1 100644 --- a/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts +++ b/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts @@ -16,8 +16,8 @@ const formErrors = { abstract: "abstract-helper-error", motivation: "motivation-helper-error", rationale: "rationale-helper-error", - receivingAddress: "receiving-address-text-error", - amount: "amount-text-error", + receivingAddress: "receiving-address-0-text-error", + amount: "amount-0-text-error", link: "link-0-url-input-error", }; @@ -39,6 +39,9 @@ export default class ProposalSubmissionPage { readonly continueBtn = this.page.getByTestId("continue-button"); readonly addLinkBtn = this.page.getByTestId("add-link-button"); + readonly addWithdrawalAddressBtn = this.page.getByTestId( + "add-withdrawal-link-button" + ); readonly infoBtn = this.page.getByTestId("info-button"); readonly treasuryBtn = this.page.getByTestId("treasury-button"); readonly editSubmissionButton = this.page.getByTestId( @@ -61,9 +64,9 @@ export default class ProposalSubmissionPage { readonly motivationInput = this.page.getByTestId("motivation-input"); readonly rationaleInput = this.page.getByTestId("rationale-input"); readonly receivingAddressInput = this.page.getByTestId( - "receiving-address-input" + "receiving-address-0-text-input" ); - readonly amountInput = this.page.getByTestId("amount-input"); + readonly amountInput = this.page.getByTestId("amount-0-text-input"); readonly closeDraftSuccessModalBtn = this.page.getByTestId("close-button"); constructor(private readonly page: Page) {}