diff --git a/tests_zemu/package.json b/tests_zemu/package.json index ddd0c8b5..92640893 100644 --- a/tests_zemu/package.json +++ b/tests_zemu/package.json @@ -19,13 +19,13 @@ }, "dependencies": { "@zondax/ledger-cosmos-js": "^3.0.3", - "@zondax/zemu": "^0.50.1" + "@zondax/zemu": "^0.50.2" }, "devDependencies": { "@types/jest": "^29.5.12", "@types/ledgerhq__hw-transport": "^4.21.8", - "@typescript-eslint/eslint-plugin": "^7.16.1", - "@typescript-eslint/parser": "^7.16.1", + "@typescript-eslint/eslint-plugin": "^7.17.0", + "@typescript-eslint/parser": "^7.17.0", "bech32": "^2.0.0", "blakejs": "^1.1.1", "crypto-js": "4.2.0", @@ -43,6 +43,6 @@ "secp256k1": "^5.0.0", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.3" + "typescript": "^5.5.4" } } diff --git a/tests_zemu/tests/standard.test.ts b/tests_zemu/tests/standard.test.ts index d4c1f2a2..2983ddef 100644 --- a/tests_zemu/tests/standard.test.ts +++ b/tests_zemu/tests/standard.test.ts @@ -96,8 +96,8 @@ describe('Standard', function () { await sim.start({ ...defaultOptions, model: m.name, - approveKeyword: isTouchDevice(m.name) ? 'QR' : '', - approveAction: ButtonKind.ApproveTapButton, + approveKeyword: isTouchDevice(m.name) ? 'Confirm' : '', + approveAction: ButtonKind.DynamicTapButton, }) const app = new CosmosApp(sim.getTransport()) @@ -131,8 +131,8 @@ describe('Standard', function () { await sim.start({ ...defaultOptions, model: m.name, - approveKeyword: isTouchDevice(m.name) ? 'Path' : '', - approveAction: ButtonKind.ApproveTapButton, + approveKeyword: isTouchDevice(m.name) ? 'Confirm' : '', + approveAction: ButtonKind.DynamicTapButton, }) const app = new CosmosApp(sim.getTransport()) @@ -184,8 +184,8 @@ describe('Standard', function () { await sim.start({ ...defaultOptions, model: m.name, - approveKeyword: isTouchDevice(m.name) ? 'QR' : '', - approveAction: ButtonKind.ApproveTapButton, + approveKeyword: isTouchDevice(m.name) ? 'Confirm' : '', + approveAction: ButtonKind.DynamicTapButton, }) const app = new CosmosApp(sim.getTransport()) @@ -207,8 +207,8 @@ describe('Standard', function () { await sim.start({ ...defaultOptions, model: m.name, - approveKeyword: isTouchDevice(m.name) ? 'Path' : '', - approveAction: ButtonKind.ApproveTapButton, + approveKeyword: isTouchDevice(m.name) ? 'Confirm' : '', + approveAction: ButtonKind.DynamicTapButton, }) const app = new CosmosApp(sim.getTransport()) diff --git a/tests_zemu/tests/textual.test.ts b/tests_zemu/tests/textual.test.ts index 998053f8..06a26816 100644 --- a/tests_zemu/tests/textual.test.ts +++ b/tests_zemu/tests/textual.test.ts @@ -26,9 +26,12 @@ import { ButtonKind, IButton, SwipeDirection } from '@zondax/zemu/dist/types' jest.setTimeout(90000) +// Textual mode is not available for NanoS +const TEXTUAL_MODELS = DEVICE_MODELS.filter(m => m.name !== 'nanos') + describe('Textual', function () { // eslint-disable-next-line jest/expect-expect - test.concurrent.each(DEVICE_MODELS.slice(1))('can start and stop container', async function (m) { + test.concurrent.each(TEXTUAL_MODELS)('can start and stop container', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) @@ -37,7 +40,7 @@ describe('Textual', function () { } }) - test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual', async function (m) { + test.concurrent.each(TEXTUAL_MODELS)('sign basic textual', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) @@ -83,7 +86,7 @@ describe('Textual', function () { } }) - test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual expert', async function (m) { + test.concurrent.each(TEXTUAL_MODELS)('sign basic textual expert', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) @@ -132,7 +135,7 @@ describe('Textual', function () { } }) - test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual eth ', async function (m) { + test.concurrent.each(TEXTUAL_MODELS)('sign basic textual eth ', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) @@ -181,7 +184,7 @@ describe('Textual', function () { } }) - test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual eth warning ', async function (m) { + test.concurrent.each(TEXTUAL_MODELS)('sign basic textual eth warning ', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name }) @@ -228,7 +231,7 @@ describe('Textual', function () { } }) - test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual evmos ', async function (m) { + test.concurrent.each(TEXTUAL_MODELS)('sign basic textual evmos ', async function (m) { const sim = new Zemu(m.path) try { await sim.start({ ...defaultOptions, model: m.name })