diff --git a/apps/ledger-live-mobile/e2e/page/speculos.page.ts b/apps/ledger-live-mobile/e2e/page/speculos.page.ts index bd752ec083f..7dbdb37596f 100644 --- a/apps/ledger-live-mobile/e2e/page/speculos.page.ts +++ b/apps/ledger-live-mobile/e2e/page/speculos.page.ts @@ -1,7 +1,7 @@ import { expectValidAddressDevice } from "@ledgerhq/live-common/e2e/speculos"; import { Account } from "@ledgerhq/live-common/e2e/enum/Account"; -export default class PasswordEntryPage { +export default class SpeculosPage { @Step("Verify receive address correctness on device") async expectValidAddressDevice(account: Account, addressDisplayed: string) { await expectValidAddressDevice(account, addressDisplayed); diff --git a/apps/ledger-live-mobile/e2e/page/trade/receive.page.ts b/apps/ledger-live-mobile/e2e/page/trade/receive.page.ts index c5d9dc92587..cfa251e5551 100644 --- a/apps/ledger-live-mobile/e2e/page/trade/receive.page.ts +++ b/apps/ledger-live-mobile/e2e/page/trade/receive.page.ts @@ -87,6 +87,7 @@ export default class ReceivePage { await tapById(CurrencyRowId); } + @Step("Accept to verify address") async selectVerifyAddress() { await waitForElementById(this.buttonVerifyAddressId); await tapById(this.buttonVerifyAddressId); @@ -102,6 +103,7 @@ export default class ReceivePage { jestExpect(await getTextOfElement(this.accountAddress)).toEqual(address); } + @Step("Get the fresh address displayed") async getFreshAddressDisplayed() { await waitForElementById(this.accountFreshAddress); return await getTextOfElement(this.accountFreshAddress); @@ -150,6 +152,7 @@ export default class ReceivePage { return tapById(this.noVerifyValidateButton); } + @Step("Expect account receive page is displayed") async expectReceivePageIsDisplayed(tickerName: string, accountName: string) { const receiveTitleTickerId = this.titleReceiveConfirmationPageId(tickerName); const accountNameId = this.accountNameReceiveId(accountName); @@ -159,6 +162,7 @@ export default class ReceivePage { await expect(getElementById(accountNameId)).toBeVisible(); } + @Step("Expect given address is displayed on receive page") async expectAdressIsCorrect(address: string) { await expect(getElementById(this.accountAddress)).toHaveText(address); } @@ -168,6 +172,7 @@ export default class ReceivePage { await expect(this.tronNewAddressWarning()).toHaveText(this.tronNewAddressWarningText); } + @Step("Refuse to verify address") async doNotVerifyAddress() { await this.selectDontVerifyAddress(); await this.selectReconfirmDontVerify();