Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update navigation flow for Ledger Sync to handle device prompts and i… #7844

Merged

Conversation

mohamedzitouni
Copy link
Contributor

…mprove synchronization steps

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

📝 Description

This PR addresses the issue where automation tests were failing at certain steps due to the inability to detect specific texts on the Ledger device during the synchronization process. The following updates have been made to fix this issue:

Added logic to handle missing text on the device during account synchronization, such as "Make sure", "Connect with", and "Turn on sync?" prompts.
Improved the device interaction flow to ensure these texts are reached and confirmed, allowing the tests to proceed without errors.
Ensured the synchronization process completes successfully and the LedgerSync drawer is properly closed.

📝 Changes:

Modified app.ledgerSync.syncAccounts to handle device interactions using app.speculos.clickNextUntilText and app.speculos.confirmOperationOnDevice.
Improved the flow to catch and interact with texts on the device screen that were previously missed, which caused test failures.

❓ Context

  • JIRA or GitHub link:

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@mohamedzitouni mohamedzitouni requested review from a team as code owners September 18, 2024 15:52
Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2024 4:41pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2024 4:41pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2024 4:41pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2024 4:41pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2024 4:41pm

@live-github-bot live-github-bot bot added the desktop Has changes in LLD label Sep 18, 2024
themooneer
themooneer previously approved these changes Sep 18, 2024
LucasWerey
LucasWerey previously approved these changes Sep 18, 2024
VicAlbr
VicAlbr previously approved these changes Sep 18, 2024
@ypolishchuk-ledger ypolishchuk-ledger merged commit e837167 into develop Sep 19, 2024
40 of 41 checks passed
@ypolishchuk-ledger ypolishchuk-ledger deleted the fix/validate-ledgersync-operations-on-device branch September 19, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants