From 9435edda7bc517b8c978707e2c5ed15a5c3739ca Mon Sep 17 00:00:00 2001 From: Victor Alber Date: Wed, 22 Jan 2025 15:19:05 +0100 Subject: [PATCH] fix: improve locator --- apps/ledger-live-desktop/tests/page/modal/receive.modal.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ledger-live-desktop/tests/page/modal/receive.modal.ts b/apps/ledger-live-desktop/tests/page/modal/receive.modal.ts index 78cd5579995d..d88f967f56bd 100644 --- a/apps/ledger-live-desktop/tests/page/modal/receive.modal.ts +++ b/apps/ledger-live-desktop/tests/page/modal/receive.modal.ts @@ -9,7 +9,8 @@ export class ReceiveModal extends Modal { "text=Verify that the shared address exactly matches the one on your device", ); private approveLabel = this.page.locator("text=Address shared securely"); - private receiveAddressValue = (address: string) => this.page.locator(`text=${address}`); + private receiveAddressValue = (address: string) => + this.page.getByTestId("modal-content").locator(`text=${address}`); private addressDisplayedValue = this.page.locator("#address-field"); private selectAccount = this.page.getByText("Choose a crypto asset"); private warningMessage = this.page.locator('div[type="warning"]');