diff --git a/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/index.tsx b/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/index.tsx index 9d52347f215f..a3e2d3d50f5b 100644 --- a/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/index.tsx +++ b/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/index.tsx @@ -11,7 +11,6 @@ import type { BleDevicePairingProps } from "./BleDevicePairing"; import { track } from "~/analytics"; import { NavigationHeaderBackButton } from "../NavigationHeaderBackButton"; import { NavigationHeaderCloseButton } from "../NavigationHeaderCloseButton"; -import { Text } from "@ledgerhq/native-ui"; const TIMEOUT_AFTER_PAIRED_MS = 2000; diff --git a/apps/ledger-live-mobile/src/newArch/features/DeviceSelection/__integrations__/deviceSelection.integration.test.tsx b/apps/ledger-live-mobile/src/newArch/features/DeviceSelection/__integrations__/deviceSelection.integration.test.tsx index ee3f9e74c536..6bdd446c66d3 100644 --- a/apps/ledger-live-mobile/src/newArch/features/DeviceSelection/__integrations__/deviceSelection.integration.test.tsx +++ b/apps/ledger-live-mobile/src/newArch/features/DeviceSelection/__integrations__/deviceSelection.integration.test.tsx @@ -55,11 +55,11 @@ describe("Device Selection feature integration test", () => { const screenTitle = screen.getByText(/Connect device/i); const listHeader = screen.getByText(/Devices/i); const stepIndicator = screen.getByText(/Step 2 of 3/i); - const addDevuceCTA = screen.getByText(/Add a Ledger/i); + const addDeviceCTA = screen.getByText(/Add a Ledger/i); const bottomText = screen.getByText(/Need a new Ledger?/i); const buyNowCTA = screen.getByText(/Buy now?/i); - [listHeader, screenTitle, stepIndicator, addDevuceCTA, bottomText, buyNowCTA].forEach( + [listHeader, screenTitle, stepIndicator, addDeviceCTA, bottomText, buyNowCTA].forEach( element => { expect(element).toBeOnTheScreen(); }, @@ -79,13 +79,12 @@ describe("Device Selection feature integration test", () => { render(); const deviceCTA = screen.getByTestId("device-item-usb|1"); const notConnectedText = screen.getByText(/connected/i); - const addDevuceCTA = screen.queryByText(/Add a Ledger/i); + const addNewCTA = screen.queryByText(/Add new/i); const bottomText = screen.getByText(/Need a new Ledger?/i); const buyNowCTA = screen.getByText(/Buy now?/i); - [deviceCTA, notConnectedText, bottomText, buyNowCTA].forEach(element => { + [deviceCTA, notConnectedText, bottomText, buyNowCTA, addNewCTA].forEach(element => { expect(element).toBeOnTheScreen(); }); - expect(addDevuceCTA).not.toBeOnTheScreen(); }); });