Skip to content

Commit

Permalink
Update navigation flow for Ledger Sync to handle device prompts and i…
Browse files Browse the repository at this point in the history
…mprove synchronization steps
  • Loading branch information
mohamedzitouni committed Sep 18, 2024
1 parent 8d78fe6 commit 58a215e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 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,10 @@ 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 58a215e

Please sign in to comment.