Skip to content

Commit

Permalink
Merge pull request #7844 from LedgerHQ/fix/validate-ledgersync-operat…
Browse files Browse the repository at this point in the history
…ions-on-device

Update navigation flow for Ledger Sync to handle device prompts and i…
  • Loading branch information
ypolishchuk-ledger authored Sep 19, 2024
2 parents 705354b + 373ae14 commit e837167
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/ledger-live-desktop/tests/page/speculos.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ export class SpeculosPage extends AppPage {
await pressRightUntil(text);
await pressBoth();
}

@step("Press right on the device until specified text appears")
async clickNextUntilText(text: string) {
await pressRightUntil(text);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ test.describe(`[${app.name}] Sync Accounts`, () => {
await app.ledgerSync.expectSyncAccountsButtonExist();

await app.ledgerSync.syncAccounts();
await app.speculos.clickNextUntilText("Make sure");
await app.speculos.confirmOperationOnDevice("Connect with");
await app.speculos.clickNextUntilText("Your crypto accounts");
await app.speculos.confirmOperationOnDevice("Turn on sync?");
await app.ledgerSync.expectSynchronizationSuccess();
await app.ledgerSync.closeLedgerSync();
Expand Down

0 comments on commit e837167

Please sign in to comment.