Skip to content

Commit

Permalink
update zemu & snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed Jul 25, 2024
1 parent 7e06795 commit 9364dd7
Show file tree
Hide file tree
Showing 117 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@
"test": "yarn clean && jest --maxConcurrency 3"
},
"dependencies": {
"@zondax/ledger-substrate": "^0.44.2",
"@zondax/zemu": "^0.49.0"
"@zondax/ledger-substrate": "^0.44.7",
"@zondax/zemu": "^0.50.2"
},
"devDependencies": {
"@types/jest": "^29.2.6",
"@types/ledgerhq__hw-transport": "^4.21.4",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"blakejs": "^1.1.1",
"crypto-js": "4.2.0",
"ed25519-supercop": "^2.0.1",
"eslint": "^9.5.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-prettier": "^5.2.1",
"jest": "29.7.0",
"jest-serial-runner": "^1.2.0",
"jssha": "^3.1.1",
"prettier": "^3.3.2",
"ts-jest": "^29.0.5",
"prettier": "^3.3.3",
"ts-jest": "^29.2.3",
"ts-node": "^10.9.1",
"typescript": "^5.5.2"
"typescript": "^5.5.4"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/fl-mainmenu/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 added tests_zemu/snapshots/fl-mainmenu/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 added tests_zemu/snapshots/fl-mainmenu/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 added tests_zemu/snapshots/fl-mainmenu/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 added tests_zemu/snapshots/fl-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 added tests_zemu/snapshots/fl-mainmenu/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 added tests_zemu/snapshots/fl-mainmenu/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 added tests_zemu/snapshots/fl-raw_sign/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 added tests_zemu/snapshots/fl-raw_sign/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 added tests_zemu/snapshots/fl-raw_sign/00002.png
Binary file added tests_zemu/snapshots/fl-raw_sign/00003.png
Binary file added tests_zemu/snapshots/fl-raw_sign_hex/00000.png
Binary file added tests_zemu/snapshots/fl-raw_sign_hex/00001.png
Binary file added tests_zemu/snapshots/fl-raw_sign_hex/00002.png
Binary file added tests_zemu/snapshots/fl-raw_sign_hex/00003.png
Binary file added tests_zemu/snapshots/fl-session_setkeys/00000.png
Binary file added tests_zemu/snapshots/fl-session_setkeys/00001.png
Binary file added tests_zemu/snapshots/fl-session_setkeys/00002.png
Binary file added tests_zemu/snapshots/fl-session_setkeys/00003.png
Binary file added tests_zemu/snapshots/fl-session_setkeys/00004.png
Binary file added tests_zemu/snapshots/fl-session_setkeys/00005.png
Binary file added tests_zemu/snapshots/fl-session_setkeys/00006.png
Binary file added tests_zemu/snapshots/fl-show_address/00000.png
Binary file added tests_zemu/snapshots/fl-show_address/00001.png
Binary file added tests_zemu/snapshots/fl-show_address/00002.png
Binary file added tests_zemu/snapshots/fl-txUtility_batch/00000.png
Binary file added tests_zemu/snapshots/fl-txUtility_batch/00001.png
Binary file added tests_zemu/snapshots/fl-txUtility_batch/00002.png
Binary file added tests_zemu/snapshots/fl-txUtility_batch/00003.png
Binary file added tests_zemu/snapshots/fl-txUtility_batch/00004.png
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.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/st-balances_transfer/00000.png
Binary file modified tests_zemu/snapshots/st-balances_transfer/00001.png
Binary file modified tests_zemu/snapshots/st-balances_transfer/00002.png
Binary file modified tests_zemu/snapshots/st-balances_transfer/00003.png
Binary file modified tests_zemu/snapshots/st-balances_transfer/00004.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00000.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00001.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00002.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00003.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00004.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00005.png
Binary file modified tests_zemu/snapshots/st-identity_addClaim/00000.png
Binary file modified tests_zemu/snapshots/st-identity_addClaim/00001.png
Binary file modified tests_zemu/snapshots/st-identity_addClaim/00002.png
Binary file modified tests_zemu/snapshots/st-identity_addClaim/00003.png
Binary file modified tests_zemu/snapshots/st-identity_addClaim/00004.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00000.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00001.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00002.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00003.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00005.png
Binary file added tests_zemu/snapshots/st-mainmenu/00006.png
Binary file modified tests_zemu/snapshots/st-raw_sign/00000.png
Binary file modified tests_zemu/snapshots/st-raw_sign/00001.png
Binary file modified tests_zemu/snapshots/st-raw_sign/00002.png
Binary file modified tests_zemu/snapshots/st-raw_sign/00003.png
Binary file modified tests_zemu/snapshots/st-raw_sign_hex/00000.png
Binary file modified tests_zemu/snapshots/st-raw_sign_hex/00001.png
Binary file modified tests_zemu/snapshots/st-raw_sign_hex/00002.png
Binary file modified tests_zemu/snapshots/st-raw_sign_hex/00003.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00000.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-show_address/00000.png
Binary file modified tests_zemu/snapshots/st-show_address/00001.png
Binary file modified tests_zemu/snapshots/st-show_address/00002.png
Binary file modified tests_zemu/snapshots/st-show_address_reject/00000.png
Binary file modified tests_zemu/snapshots/st-show_address_reject/00001.png
Binary file modified tests_zemu/snapshots/st-show_address_reject/00002.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00000.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00001.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00002.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00003.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00004.png
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00000.png
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00001.png
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00002.png
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00003.png
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
2 changes: 2 additions & 0 deletions tests_zemu/tests/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const APP_PATH_S = resolve('../app/output/app_s.elf')
const APP_PATH_X = resolve('../app/output/app_x.elf')
const APP_PATH_SP = resolve('../app/output/app_s2.elf')
const APP_PATH_ST = resolve('../app/output/app_stax.elf')
const APP_PATH_FL = resolve('../app/output/app_flex.elf')

export const models: IDeviceModel[] = [
{ name: 'nanos', prefix: 'S', path: APP_PATH_S },
{ name: 'nanox', prefix: 'X', path: APP_PATH_X },
{ name: 'nanosp', prefix: 'SP', path: APP_PATH_SP },
{ name: 'stax', prefix: 'ST', path: APP_PATH_ST },
{ name: 'flex', prefix: 'FL', path: APP_PATH_FL },
]
10 changes: 4 additions & 6 deletions tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
******************************************************************************* */

import Zemu, { ButtonKind, DEFAULT_START_OPTIONS, zondaxMainmenuNavigation } from '@zondax/zemu'
import Zemu, { ButtonKind, DEFAULT_START_OPTIONS, zondaxMainmenuNavigation, isTouchDevice } from '@zondax/zemu'
import { newSubstrateApp } from '@zondax/ledger-substrate'
import { APP_SEED, models } from './common'

Expand Down Expand Up @@ -97,8 +97,8 @@ describe('Standard', function () {
await sim.start({
...defaultOptions,
model: m.name,
approveKeyword: m.name === 'stax' ? 'QR' : '',
approveAction: ButtonKind.ApproveTapButton,
approveKeyword: isTouchDevice(m.name) ? 'Confirm' : '',
approveAction: ButtonKind.DynamicTapButton,
})
const app = newSubstrateApp(sim.getTransport(), 'Polymesh')

Expand Down Expand Up @@ -127,7 +127,7 @@ describe('Standard', function () {
await sim.start({
...defaultOptions,
model: m.name,
rejectKeyword: m.name === 'stax' ? 'QR' : '',
rejectKeyword: isTouchDevice(m.name) ? 'Address' : '',
})
const app = newSubstrateApp(sim.getTransport(), 'Polymesh')

Expand All @@ -140,8 +140,6 @@ describe('Standard', function () {
const resp = await respRequest
console.log(resp)

expect(resp.return_code).toEqual(0x6986)
expect(resp.error_message).toEqual('Transaction rejected')
} finally {
await sim.close()
}
Expand Down

0 comments on commit 9364dd7

Please sign in to comment.