Skip to content

Commit

Permalink
fix(llm/e2e): onboarding scroll to device
Browse files Browse the repository at this point in the history
  • Loading branch information
ofreyssinet-ledger committed Sep 10, 2024
1 parent c668987 commit 14c47f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/ledger-live-mobile/e2e/page/common.page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DeviceUSB, ModelId, getUSBDevice, knownDevices } from "../models/devices";
import {
getElementById,
scrollToId,
tapByElement,
tapById,
typeTextByElement,
Expand Down Expand Up @@ -63,6 +64,7 @@ export default class CommonPage {
async addDeviceViaUSB(device: ModelId) {
const nano = getUSBDevice(device);
await bridge.addDevicesUSB(nano);
await scrollToId(this.pluggedDeviceRow(nano));
await waitForElementById(this.pluggedDeviceRow(nano));
await tapById(this.pluggedDeviceRow(nano));
await new DeviceAction(nano).accessManager();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { tapByElement, getElementById, waitForElementById, tapById } from "../../helpers";
import {
tapByElement,
getElementById,
waitForElementById,
tapById,
scrollToId,
} from "../../helpers";
import { ModelId } from "../../models/devices";
import { expect } from "detox";

Expand Down Expand Up @@ -104,6 +110,7 @@ export default class OnboardingStepsPage {
}

async chooseDevice(device: ModelId) {
await scrollToId(this.selectDevice(device));
await tapById(this.selectDevice(device));
}

Expand Down

0 comments on commit 14c47f6

Please sign in to comment.