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

support ledger emulator #3883

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open

support ledger emulator #3883

wants to merge 12 commits into from

Conversation

yushih
Copy link
Collaborator

@yushih yushih commented Mar 7, 2025

Add connectLedgerWallet.test.js. To run this test:

  1. build Yoroi extension with npm run test:build
  2. Start Speculos with the Cardano app binary loaded

@yushih yushih requested a review from Nebyt March 8, 2025 14:45
@yushih yushih marked this pull request as ready for review March 8, 2025 14:46
@sonarqube-yoroi
Copy link

// 'data: {"text": "...screen text...", "x": 42, "y": 42, "w": 45, "h": 13, "clear": false}'
try {
const eventsResponse = await fetch(
`${SPECULOS_ENDPOINT}/events?currentscreenonly=true`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@@ -43,7 +43,8 @@ describe('Connect Ledger HW wallet', function () {
});

it('Ledger initialization', async function () {
//todo ping Speculos
const ledgerState = await ledgerController.readScreen();
expect(ledgerState, 'Cardano app is not ready').to.equal('Cardano is ready');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants