diff --git a/apps/ledger-live-mobile/src/components/RequiresCameraPermissions/Fallback.tsx b/apps/ledger-live-mobile/src/components/RequiresCameraPermissions/Fallback.tsx index d9df3f54d7f0..cba184296984 100644 --- a/apps/ledger-live-mobile/src/components/RequiresCameraPermissions/Fallback.tsx +++ b/apps/ledger-live-mobile/src/components/RequiresCameraPermissions/Fallback.tsx @@ -28,7 +28,7 @@ const FallbackCameraBody: React.FC = ({ const { colors } = useTheme(); return ( - + diff --git a/apps/ledger-live-mobile/src/newArch/features/Accounts/screens/AddAccount/components/StepFlow.tsx b/apps/ledger-live-mobile/src/newArch/features/Accounts/screens/AddAccount/components/StepFlow.tsx index 348f85a6fbab..38cc235d3540 100644 --- a/apps/ledger-live-mobile/src/newArch/features/Accounts/screens/AddAccount/components/StepFlow.tsx +++ b/apps/ledger-live-mobile/src/newArch/features/Accounts/screens/AddAccount/components/StepFlow.tsx @@ -52,6 +52,7 @@ const StepFlow = ({ // That means the url as be stored in the store const onQrCodeScanned = (data: string) => { + // eslint-disable-next-line no-console console.log(data); // setCurrentStep(Steps.PinCodeInput); }; diff --git a/apps/ledger-live-mobile/src/newArch/features/WalletSync/__integrations__/walletSyncSettings.integration.test.tsx b/apps/ledger-live-mobile/src/newArch/features/WalletSync/__integrations__/walletSyncSettings.integration.test.tsx index 4a6f8b27a710..fe2b55e768be 100644 --- a/apps/ledger-live-mobile/src/newArch/features/WalletSync/__integrations__/walletSyncSettings.integration.test.tsx +++ b/apps/ledger-live-mobile/src/newArch/features/WalletSync/__integrations__/walletSyncSettings.integration.test.tsx @@ -52,7 +52,8 @@ describe("WalletSyncSettings", () => { await user.press(await screen.findByText(/ledger sync/i)); await user.press(await screen.findByText(/already created a key?/i)); await user.press(await screen.findByText(/scan a qr code/i)); - await expect(await screen.findByText(/show qr/i)).toBeVisible(); + await expect(screen.queryAllByText(/scan qr code/i)).toHaveLength(2); + await expect(screen.getByTestId("scan-ws-camera")).toBeVisible(); }); it("Should display the QR code when 'show qr' toggle is pressed", async () => { @@ -62,7 +63,7 @@ describe("WalletSyncSettings", () => { await user.press(await screen.findByText(/ledger sync/i)); await user.press(await screen.findByText(/already created a key?/i)); await user.press(await screen.findByText(/scan a qr code/i)); - await user.press(await screen.findByText(/show qr/i)); + await user.press(await screen.queryAllByText(/show qr/i)[0]); await expect(await screen.getByTestId("ws-show-qr-code")).toBeVisible(); }); }); diff --git a/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx b/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx index 7e0edd8a6505..6103808a1578 100644 --- a/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx +++ b/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx @@ -56,7 +56,13 @@ const ScanQrCode = ({ onQrCodeScanned }: Props) => { ]; return ( - + { + // eslint-disable-next-line no-console console.log(data); //setCurrentStep(Steps.PinCodeInput); };