From e9bf6c59cee6744aeb7f4c50b94bc92412e61cd7 Mon Sep 17 00:00:00 2001 From: Abdurrahman SASTIM Date: Tue, 7 Jan 2025 17:29:58 +0100 Subject: [PATCH] test: test --- apps/ledger-live-mobile/e2e/helpers.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/ledger-live-mobile/e2e/helpers.ts b/apps/ledger-live-mobile/e2e/helpers.ts index e7a1df6e1f2a..588ab6161d1b 100644 --- a/apps/ledger-live-mobile/e2e/helpers.ts +++ b/apps/ledger-live-mobile/e2e/helpers.ts @@ -27,14 +27,18 @@ let portCounter = BASE_PORT; // Counter for generating unique ports const speculosDevices: [number, SpeculosDevice][] = []; export async function waitForElementById(id: string | RegExp, timeout: number = DEFAULT_TIMEOUT) { - return await waitFor(getElementById(id)).toBeVisible().withTimeout(timeout); + return await waitFor(element(by.id(id))) + .toBeVisible() + .withTimeout(timeout); } export async function waitForElementByText( text: string | RegExp, timeout: number = DEFAULT_TIMEOUT, ) { - return await waitFor(getElementByText(text)).toBeVisible().withTimeout(timeout); + return await waitFor(element(by.text(text))) + .toBeVisible() + .withTimeout(timeout); } export function getElementById(id: string | RegExp, index = 0) {