Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Nov 29, 2022
1 parent 8f6ec62 commit 68e835f
Show file tree
Hide file tree
Showing 11 changed files with 49,669 additions and 49,307 deletions.
47,407 changes: 23,730 additions & 23,677 deletions tests/testcases_current.json

Large diffs are not rendered by default.

51,548 changes: 25,928 additions & 25,620 deletions tests/testcases_previous.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"Ledger"
],
"scripts": {
"test": "ts-node tests/pullImageKillOld.ts && jest -t 'Recovery' && jest -t 'Standard'",
"testSR25519": "ts-node tests/pullImageKillOld.ts && jest tests/sr25519.test.ts"
"clean": "ts-node tests/pullImageKillOld.ts",
"test": "yarn clean && jest tests/recovery.test.ts tests/standard.test.ts",
"testSR25519": "yarn clean && jest tests/sr25519.test.ts"
},
"dependencies": {
"@zondax/ledger-substrate": "^0.39.0",
Expand Down
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests_zemu/tests/sr25519.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe('SR25519', function () {
const signatureRequest = app.sign(pathAccount, pathChange, pathIndex, txBlob, 1)
// Wait until we are not in the main menu
await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot())
await sim.compareSnapshotsAndApprove('.', 's-sign_basic_normal')
await sim.compareSnapshotsAndApprove('.', 's-sign_basic_normal_sr25519')

const signatureResponse = await signatureRequest
console.log(signatureResponse)
Expand Down Expand Up @@ -173,7 +173,7 @@ describe('SR25519', function () {

// Wait until we are not in the main menu
await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot())
await sim.compareSnapshotsAndApprove('.', 's-sign_basic_expert')
await sim.compareSnapshotsAndApprove('.', 's-sign_basic_expert_sr25519')

const signatureResponse = await signatureRequest
console.log(signatureResponse)
Expand Down Expand Up @@ -266,7 +266,7 @@ describe('SR25519', function () {
const signatureRequest = app.sign(pathAccount, pathChange, pathIndex, txBlob, 1)
// Wait until we are not in the main menu
await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot())
await sim.compareSnapshotsAndApprove('.', 's-sign_large_nomination')
await sim.compareSnapshotsAndApprove('.', 's-sign_large_nomination_sr25519')

const signatureResponse = await signatureRequest
console.log(signatureResponse)
Expand Down
10 changes: 5 additions & 5 deletions tests_zemu/tests/zemu_blobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
******************************************************************************* */

export const txBalances_transfer =
'050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05c5e2400001000000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05c722400001100000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txStaking_nominate =
'070510003132333435363738393031323334353637383930313233343536373839303132003132333435363738393031323334353637383930313233343536373839303133003132333435363738393031323334353637383930313233343536373839303134003132333435363738393031323334353637383930313233343536373839303135d5038d2433158139ae28a3dfaac5fe1560a5e9e05c5e2400001000000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'070510003132333435363738393031323334353637383930313233343536373839303132003132333435363738393031323334353637383930313233343536373839303133003132333435363738393031323334353637383930313233343536373839303134003132333435363738393031323334353637383930313233343536373839303135d5038d2433158139ae28a3dfaac5fe1560a5e9e05c722400001100000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txSession_setKeys =
'0900313233343536373839303132333435363738393031323334353637383930313231323334353637383930313233343536373839303132333435363738393031323132333435363738393031323334353637383930313233343536373839303132313233343536373839303132333435363738393031323334353637383930313200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100c293435d5038d2433158139ae28a3dfaac5fe1560a5e9e05c5e2400001000000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'0900313233343536373839303132333435363738393031323334353637383930313231323334353637383930313233343536373839303132333435363738393031323132333435363738393031323334353637383930313233343536373839303132313233343536373839303132333435363738393031323334353637383930313200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100c293435d5038d2433158139ae28a3dfaac5fe1560a5e9e05c722400001100000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txUtility_batch =
'1a000800002c000000000058000000d5038d2433158139ae28a3dfaac5fe1560a5e9e05c5e2400001000000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'1a000800002c000000000058000000d5038d2433158139ae28a3dfaac5fe1560a5e9e05c722400001100000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txProxy_proxy =
'1d000031323334353637383930313233343536373839303132333435363738393031320100050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05c5e2400001000000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'1d000031323334353637383930313233343536373839303132333435363738393031320100050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05c722400001100000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

0 comments on commit 68e835f

Please sign in to comment.