Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Jan 12, 2024
1 parent a7d6959 commit d4a4698
Show file tree
Hide file tree
Showing 120 changed files with 79,090 additions and 87,329 deletions.
81,300 changes: 37,952 additions & 43,348 deletions tests/testcases_current.json

Large diffs are not rendered by default.

85,091 changes: 41,124 additions & 43,967 deletions tests/testcases_previous.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@zondax/ledger-substrate": "^0.41.3",
"@zondax/zemu": "^0.46.0"
"@zondax/zemu": "^0.46.1"
},
"devDependencies": {
"@types/jest": "^29.5.0",
Expand Down
Binary file modified tests_zemu/snapshots/s-balances_transfer/00000.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-balances_transfer_expert/00000.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/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/s-session_setkeys/00001.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-session_setkeys/00002.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-session_setkeys/00003.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-session_setkeys/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-session_setkeys/00005.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-session_setkeys/00006.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-session_setkeys/00007.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-session_setkeys/00008.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-session_setkeys/00009.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-session_setkeys/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/s-session_setkeys/00011.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-session_setkeys/00012.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-session_setkeys/00013.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-session_setkeys/00014.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-session_setkeys/00015.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-session_setkeys/00016.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-session_setkeys/00017.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 added tests_zemu/snapshots/s-session_setkeys/00018.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 added tests_zemu/snapshots/s-session_setkeys/00019.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-sign_basic_expert_sr25519/00000.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-sign_basic_normal_sr25519/00000.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-balances_transfer/00001.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer/00002.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer/00003.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer/00004.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer/00005.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer/00006.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00001.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00002.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00003.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00004.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00007.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00008.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00011.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00012.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00001.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00002.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00003.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00011.png
Binary file modified tests_zemu/snapshots/sp-proxy_proxy/00002.png
Binary file modified tests_zemu/snapshots/sp-proxy_proxy/00005.png
Binary file modified tests_zemu/snapshots/sp-proxy_proxy/00008.png
Binary file modified tests_zemu/snapshots/sp-proxy_proxy/00009.png
Binary file modified tests_zemu/snapshots/sp-raw_sign/00001.png
Binary file modified tests_zemu/snapshots/sp-raw_sign/00002.png
Binary file modified tests_zemu/snapshots/sp-raw_sign_hex/00001.png
Binary file modified tests_zemu/snapshots/sp-raw_sign_hex/00002.png
Binary file modified tests_zemu/snapshots/sp-raw_sign_hex/00003.png
Binary file modified tests_zemu/snapshots/sp-raw_sign_hex/00004.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00001.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00002.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00003.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00004.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00005.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00006.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00007.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00008.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00009.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00010.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00011.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00012.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00013.png
Binary file added tests_zemu/snapshots/sp-session_setkeys/00014.png
Binary file added tests_zemu/snapshots/sp-session_setkeys/00015.png
Binary file modified tests_zemu/snapshots/sp-show_address/00001.png
Binary file modified tests_zemu/snapshots/sp-show_address_reject/00001.png
Binary file modified tests_zemu/snapshots/sp-show_address_reject/00003.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00001.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00002.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00003.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00004.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00005.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00006.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00007.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00002.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00003.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00004.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00005.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00006.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00007.png
Binary file modified tests_zemu/snapshots/st-balances_transfer/00001.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00001.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00001.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00001.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00002.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00003.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00004.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00005.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00006.png
Binary file added tests_zemu/snapshots/st-session_setkeys/00007.png
Binary file modified tests_zemu/snapshots/x-balances_transfer/00001.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00001.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00002.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00003.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00004.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00005.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00006.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00007.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00008.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00009.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00010.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00011.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00012.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00013.png
Binary file added tests_zemu/snapshots/x-session_setkeys/00014.png
Binary file added tests_zemu/snapshots/x-session_setkeys/00015.png
6 changes: 3 additions & 3 deletions tests_zemu/tests/custom.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { APP_SEED, models } from './common'
// @ts-expect-error missing typings
import ed25519 from 'ed25519-supercop'
import { blake2bFinal, blake2bInit, blake2bUpdate } from 'blakejs'
import { txBalances_transfer, txSession_setKeys, txStaking_nominate, txProxy_proxy, txUtility_batch } from './zemu_blobs'
import { txBalances_transferAllowDeath, txSession_setKeys, txStaking_nominate, txProxy_proxy, txUtility_batch } from './zemu_blobs'

const defaultOptions = {
...DEFAULT_START_OPTIONS,
Expand All @@ -35,7 +35,7 @@ jest.setTimeout(180000)
const TXNS = [
{
name: 'balances_transfer',
blob: txBalances_transfer,
blob: txBalances_transferAllowDeath,
},
{
name: 'session_setkeys',
Expand Down Expand Up @@ -110,7 +110,7 @@ test.concurrent.each(models)('balances transfer expert', async function (m) {
// Change to expert mode
await sim.toggleExpertMode()

const txBlob = Buffer.from(txBalances_transfer, 'hex')
const txBlob = Buffer.from(txBalances_transferAllowDeath, 'hex')

const responseAddr = await app.getAddress(pathAccount, pathChange, pathIndex)
const pubKey = Buffer.from(responseAddr.pubKey, 'hex')
Expand Down
6 changes: 3 additions & 3 deletions tests_zemu/tests/sr25519.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import Zemu, { DEFAULT_START_OPTIONS } from '@zondax/zemu'
import { newPolkadotApp } from '@zondax/ledger-substrate'
import { APP_SEED } from './common'
import { txBalances_transfer } from './zemu_blobs'
import { txBalances_transferAllowDeath } from './zemu_blobs'

// @ts-ignore
import { blake2bFinal, blake2bInit, blake2bUpdate } from 'blakejs'
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('SR25519', function () {
const pathChange = 0x80000000
const pathIndex = 0x80000000

const txBlob = Buffer.from(txBalances_transfer, 'hex')
const txBlob = Buffer.from(txBalances_transferAllowDeath, 'hex')

const responseAddr = await app.getAddress(pathAccount, pathChange, pathIndex, false, 1)
const pubKey = Buffer.from(responseAddr.pubKey, 'hex')
Expand Down Expand Up @@ -160,7 +160,7 @@ describe('SR25519', function () {
await sim.clickBoth()
await sim.clickLeft()

const txBlob = Buffer.from(txBalances_transfer, 'hex')
const txBlob = Buffer.from(txBalances_transferAllowDeath, 'hex')

const responseAddr = await app.getAddress(pathAccount, pathChange, pathIndex, false, 1)
const pubKey = Buffer.from(responseAddr.pubKey, 'hex')
Expand Down
14 changes: 7 additions & 7 deletions tests_zemu/tests/zemu_blobs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** ******************************************************************************
* (c) 2019 - 2023 Zondax AG
* (c) 2019 - 2024 Zondax AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,17 +14,17 @@
* limitations under the License.
******************************************************************************* */

export const txBalances_transfer =
'050700313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05cd62400001800000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
export const txBalances_transferAllowDeath =
'050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05c28460f001900000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txStaking_nominate =
'070510003132333435363738393031323334353637383930313233343536373839303132003132333435363738393031323334353637383930313233343536373839303133003132333435363738393031323334353637383930313233343536373839303134003132333435363738393031323334353637383930313233343536373839303135d5038d2433158139ae28a3dfaac5fe1560a5e9e05cd62400001800000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'070510003132333435363738393031323334353637383930313233343536373839303132003132333435363738393031323334353637383930313233343536373839303133003132333435363738393031323334353637383930313233343536373839303134003132333435363738393031323334353637383930313233343536373839303135d5038d2433158139ae28a3dfaac5fe1560a5e9e05c28460f001900000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txSession_setKeys =
'090031323334353637383930313233343536373839303132333435363738393031323132333435363738393031323334353637383930313233343536373839303132313233343536373839303132333435363738393031323334353637383930313231323334353637383930313233343536373839303132333435363738393031320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5038d2433158139ae28a3dfaac5fe1560a5e9e05cd62400001800000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'090031323334353637383930313233343536373839303132333435363738393031323132333435363738393031323334353637383930313233343536373839303132313233343536373839303132333435363738393031323334353637383930313231323334353637383930313233343536373839303132333435363738393031320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5038d2433158139ae28a3dfaac5fe1560a5e9e05c28460f001900000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txUtility_batch =
'1a000800000834340000083838d5038d2433158139ae28a3dfaac5fe1560a5e9e05cd62400001800000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'1a000800000834340000083838d5038d2433158139ae28a3dfaac5fe1560a5e9e05c28460f001900000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txProxy_proxy =
'1d000031323334353637383930313233343536373839303132333435363738393031320100050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05cd62400001800000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'1d000031323334353637383930313233343536373839303132333435363738393031320100050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05c28460f001900000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

0 comments on commit d4a4698

Please sign in to comment.