Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
abenso committed Nov 25, 2024
1 parent ebae0df commit 08b5573
Show file tree
Hide file tree
Showing 83 changed files with 14 additions and 7 deletions.
Binary file added tests_zemu/snapshots/fl-sign_Delegate/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-sign_Delegate/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-sign_Delegate/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-sign_Delegate/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-sign_Output/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-sign_Output/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-sign_Output/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-sign_Output/00003.png
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-sign_Spend/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-sign_Spend/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-sign_Spend/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-sign_Spend/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-sign_Undelegate/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-sign_Undelegate/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-sign_Undelegate/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-sign_Undelegate/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/sp-sign_Delegate/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/sp-sign_Delegate/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/sp-sign_Delegate/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/sp-sign_Delegate/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/sp-sign_Output/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/sp-sign_Output/00001.png
Binary file added tests_zemu/snapshots/sp-sign_Output/00002.png
Binary file added tests_zemu/snapshots/sp-sign_Output/00003.png
Binary file added tests_zemu/snapshots/sp-sign_Spend/00000.png
Binary file added tests_zemu/snapshots/sp-sign_Spend/00001.png
Binary file added tests_zemu/snapshots/sp-sign_Spend/00002.png
Binary file added tests_zemu/snapshots/sp-sign_Spend/00003.png
Binary file added tests_zemu/snapshots/sp-sign_Undelegate/00000.png
Binary file added tests_zemu/snapshots/sp-sign_Undelegate/00001.png
Binary file added tests_zemu/snapshots/sp-sign_Undelegate/00002.png
Binary file added tests_zemu/snapshots/sp-sign_Undelegate/00003.png
Binary file added tests_zemu/snapshots/st-sign_Delegate/00000.png
Binary file added tests_zemu/snapshots/st-sign_Delegate/00001.png
Binary file added tests_zemu/snapshots/st-sign_Delegate/00002.png
Binary file added tests_zemu/snapshots/st-sign_Delegate/00003.png
Binary file added tests_zemu/snapshots/st-sign_Output/00000.png
Binary file added tests_zemu/snapshots/st-sign_Output/00001.png
Binary file added tests_zemu/snapshots/st-sign_Output/00002.png
Binary file added tests_zemu/snapshots/st-sign_Output/00003.png
Binary file added tests_zemu/snapshots/st-sign_Spend/00000.png
Binary file added tests_zemu/snapshots/st-sign_Spend/00001.png
Binary file added tests_zemu/snapshots/st-sign_Spend/00002.png
Binary file added tests_zemu/snapshots/st-sign_Spend/00003.png
Binary file added tests_zemu/snapshots/st-sign_Undelegate/00000.png
Binary file added tests_zemu/snapshots/st-sign_Undelegate/00002.png
Binary file added tests_zemu/snapshots/st-sign_Undelegate/00003.png
Binary file added tests_zemu/snapshots/x-sign_Delegate/00000.png
Binary file added tests_zemu/snapshots/x-sign_Delegate/00001.png
Binary file added tests_zemu/snapshots/x-sign_Delegate/00002.png
Binary file added tests_zemu/snapshots/x-sign_Delegate/00003.png
Binary file added tests_zemu/snapshots/x-sign_Output/00000.png
Binary file added tests_zemu/snapshots/x-sign_Output/00001.png
Binary file added tests_zemu/snapshots/x-sign_Output/00002.png
Binary file added tests_zemu/snapshots/x-sign_Output/00003.png
Binary file added tests_zemu/snapshots/x-sign_Spend/00000.png
Binary file added tests_zemu/snapshots/x-sign_Spend/00001.png
Binary file added tests_zemu/snapshots/x-sign_Spend/00002.png
Binary file added tests_zemu/snapshots/x-sign_Spend/00003.png
Binary file added tests_zemu/snapshots/x-sign_Undelegate/00000.png
Binary file added tests_zemu/snapshots/x-sign_Undelegate/00001.png
Binary file added tests_zemu/snapshots/x-sign_Undelegate/00002.png
Binary file added tests_zemu/snapshots/x-sign_Undelegate/00003.png
8 changes: 5 additions & 3 deletions tests_zemu/tests/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ const APP_PATH_FL = resolve('../app/output/app_flex.elf')
export const models: IDeviceModel[] = [
// Due to binary size problems nanos is not supported
// { name: 'nanos', prefix: 'S', path: APP_PATH_S },
// { name: 'nanox', prefix: 'X', path: APP_PATH_X },
{ 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 },
{ name: 'stax', prefix: 'ST', path: APP_PATH_ST },
{ name: 'flex', prefix: 'FL', path: APP_PATH_FL },
]

export const defaultOptions = {
Expand All @@ -30,4 +30,6 @@ export const defaultOptions = {
X11: false,
}

export const txBlobExample =
'0abe020abb020aa8010a300a0a08c8daccb4a6f185e40612220a2029ea9c2f3371f6a487e7e95c247041f4a356f983eb064e5d2b3bcf322ca96a10122085197c5d60cf28b5ec756a657957b310072396577956fd5cd421ca62b4a6bc091a520a50890bc98e3698aa4578e419b028da5672e627c280d8b06166f4c42d5366bccf1fcf3b296cd61e8d744a21f75f2fb697183e18595d8a79008539d8fb138b405db09db65cc42d54c0e772e5d42d5f20b52f10f1a9e496d5f01d1a20732b53ee807140dd5672768ec1a38be09c531a0c6fc185d5f51c18f5f2261d012220f2e2f45f0ea734d7c11321cbf20427b379cfed6f71874ff97e8bcbbfce2d3d012a2073ec22fcaeccfadc720dd0350cf6af7ec274a74be832e8334613638edfd2fb10322093043bfea2094b0398f0e14bccc66a9ec335bbfd1f8e8b4c2c21428947f5e50d121c08cec08d8e1e1206757673762d361a0c0a0a08d6fab2e5c4f992aa0b'

10 changes: 7 additions & 3 deletions tests_zemu/tests/effect_hash.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
******************************************************************************* */

import Zemu from '@zondax/zemu'
import { PEN_PATH, defaultOptions, models } from './common'
import { PenumbraApp } from '@zondax/ledger-penumbra'
import { PENUMBRA_PATH, defaultOptions, models, ACCOUNT_ID } from './common'
import { PenumbraApp, AddressIndex } from '@zondax/ledger-penumbra'
import { ACTIONS_TESTCASES } from './testscases/actions'

jest.setTimeout(60000)
Expand All @@ -40,8 +40,12 @@ describe('Standard', function () {

const messageToSign = Buffer.from(data.blob, 'hex')

const addressIndex: AddressIndex = {
account: ACCOUNT_ID,
randomizer: undefined,
}
// do not wait here... we need to navigate
const signatureRequest = app.sign(PEN_PATH, 0, messageToSign)
const signatureRequest = app.sign(PENUMBRA_PATH, addressIndex, messageToSign)

// Wait until we are not in the main menu
await sim.waitUntilScreenIsNot(sim.getMainMenuSnapshot())
Expand Down
3 changes: 2 additions & 1 deletion tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
******************************************************************************* */

import Zemu, { ButtonKind, zondaxMainmenuNavigation, isTouchDevice } from '@zondax/zemu'
import { ACCOUNT_ID, PENUMBRA_PATH, defaultOptions, models, txBlobExample } from './common'
import { ACCOUNT_ID, PENUMBRA_PATH, defaultOptions, models } from './common'
import { PenumbraApp, AddressIndex } from '@zondax/ledger-penumbra'

jest.setTimeout(60000)
Expand Down Expand Up @@ -206,3 +206,4 @@ describe('Standard', function () {
await sim.close()
}
})
})

0 comments on commit 08b5573

Please sign in to comment.