From 0a16bf542e617206cbb00a68e4005fd03d591cc0 Mon Sep 17 00:00:00 2001 From: Niraj Date: Thu, 5 Dec 2024 15:06:58 +0545 Subject: [PATCH] hotfix: use getByText on receiving address and amount input field --- .../playwright/lib/pages/proposalSubmissionPage.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts b/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts index 14b69459..bbb86b63 100644 --- a/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts +++ b/tests/govtool-frontend/playwright/lib/pages/proposalSubmissionPage.ts @@ -60,10 +60,8 @@ export default class ProposalSubmissionPage { readonly metadataUrlInput = this.page.getByTestId("url-input"); readonly motivationInput = this.page.getByTestId("motivation-input"); readonly rationaleInput = this.page.getByTestId("rationale-input"); - readonly receivingAddressInput = this.page.getByTestId( - "receiving-address-input" - ); - readonly amountInput = this.page.getByTestId("amount-input"); + readonly receivingAddressInput = this.page.getByText('Receiving stake address 1 *').first(); //BUG Incorrect testId + readonly amountInput = this.page.getByText('Amount 1 *').first(); //BUG Incorrect testId readonly closeDraftSuccessModalBtn = this.page.getByTestId("close-button"); constructor(private readonly page: Page) {}