Skip to content

Commit 14c47f6

Browse files
fix(llm/e2e): onboarding scroll to device
1 parent c668987 commit 14c47f6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

apps/ledger-live-mobile/e2e/page/common.page.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DeviceUSB, ModelId, getUSBDevice, knownDevices } from "../models/devices";
22
import {
33
getElementById,
4+
scrollToId,
45
tapByElement,
56
tapById,
67
typeTextByElement,
@@ -63,6 +64,7 @@ export default class CommonPage {
6364
async addDeviceViaUSB(device: ModelId) {
6465
const nano = getUSBDevice(device);
6566
await bridge.addDevicesUSB(nano);
67+
await scrollToId(this.pluggedDeviceRow(nano));
6668
await waitForElementById(this.pluggedDeviceRow(nano));
6769
await tapById(this.pluggedDeviceRow(nano));
6870
await new DeviceAction(nano).accessManager();

apps/ledger-live-mobile/e2e/page/onboarding/onboardingSteps.page.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { tapByElement, getElementById, waitForElementById, tapById } from "../../helpers";
1+
import {
2+
tapByElement,
3+
getElementById,
4+
waitForElementById,
5+
tapById,
6+
scrollToId,
7+
} from "../../helpers";
28
import { ModelId } from "../../models/devices";
39
import { expect } from "detox";
410

@@ -104,6 +110,7 @@ export default class OnboardingStepsPage {
104110
}
105111

106112
async chooseDevice(device: ModelId) {
113+
await scrollToId(this.selectDevice(device));
107114
await tapById(this.selectDevice(device));
108115
}
109116

0 commit comments

Comments
 (0)