diff --git a/tests_zemu/package.json b/tests_zemu/package.json index 70a14d1e..fc664617 100644 --- a/tests_zemu/package.json +++ b/tests_zemu/package.json @@ -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" } } diff --git a/tests_zemu/snapshots/fl-balances_transfer/00000.png b/tests_zemu/snapshots/fl-balances_transfer/00000.png new file mode 100644 index 00000000..4dfbe796 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer/00000.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer/00001.png b/tests_zemu/snapshots/fl-balances_transfer/00001.png new file mode 100644 index 00000000..0573a9a1 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer/00001.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer/00002.png b/tests_zemu/snapshots/fl-balances_transfer/00002.png new file mode 100644 index 00000000..ea1919ac Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer/00002.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer/00003.png b/tests_zemu/snapshots/fl-balances_transfer/00003.png new file mode 100644 index 00000000..c89193ca Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer/00003.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer/00004.png b/tests_zemu/snapshots/fl-balances_transfer/00004.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer/00004.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer_expert/00000.png b/tests_zemu/snapshots/fl-balances_transfer_expert/00000.png new file mode 100644 index 00000000..7d93d047 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer_expert/00000.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer_expert/00001.png b/tests_zemu/snapshots/fl-balances_transfer_expert/00001.png new file mode 100644 index 00000000..17e3876d Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer_expert/00001.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer_expert/00002.png b/tests_zemu/snapshots/fl-balances_transfer_expert/00002.png new file mode 100644 index 00000000..d186df00 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer_expert/00002.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer_expert/00003.png b/tests_zemu/snapshots/fl-balances_transfer_expert/00003.png new file mode 100644 index 00000000..9cc35e86 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer_expert/00003.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer_expert/00004.png b/tests_zemu/snapshots/fl-balances_transfer_expert/00004.png new file mode 100644 index 00000000..d020e153 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer_expert/00004.png differ diff --git a/tests_zemu/snapshots/fl-balances_transfer_expert/00005.png b/tests_zemu/snapshots/fl-balances_transfer_expert/00005.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-balances_transfer_expert/00005.png differ diff --git a/tests_zemu/snapshots/fl-identity_addClaim/00000.png b/tests_zemu/snapshots/fl-identity_addClaim/00000.png new file mode 100644 index 00000000..4dfbe796 Binary files /dev/null and b/tests_zemu/snapshots/fl-identity_addClaim/00000.png differ diff --git a/tests_zemu/snapshots/fl-identity_addClaim/00001.png b/tests_zemu/snapshots/fl-identity_addClaim/00001.png new file mode 100644 index 00000000..9924270b Binary files /dev/null and b/tests_zemu/snapshots/fl-identity_addClaim/00001.png differ diff --git a/tests_zemu/snapshots/fl-identity_addClaim/00002.png b/tests_zemu/snapshots/fl-identity_addClaim/00002.png new file mode 100644 index 00000000..44e7051b Binary files /dev/null and b/tests_zemu/snapshots/fl-identity_addClaim/00002.png differ diff --git a/tests_zemu/snapshots/fl-identity_addClaim/00003.png b/tests_zemu/snapshots/fl-identity_addClaim/00003.png new file mode 100644 index 00000000..c89193ca Binary files /dev/null and b/tests_zemu/snapshots/fl-identity_addClaim/00003.png differ diff --git a/tests_zemu/snapshots/fl-identity_addClaim/00004.png b/tests_zemu/snapshots/fl-identity_addClaim/00004.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-identity_addClaim/00004.png differ diff --git a/tests_zemu/snapshots/fl-mainmenu/00000.png b/tests_zemu/snapshots/fl-mainmenu/00000.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-mainmenu/00000.png differ diff --git a/tests_zemu/snapshots/fl-mainmenu/00001.png b/tests_zemu/snapshots/fl-mainmenu/00001.png new file mode 100644 index 00000000..f4568e79 Binary files /dev/null and b/tests_zemu/snapshots/fl-mainmenu/00001.png differ diff --git a/tests_zemu/snapshots/fl-mainmenu/00002.png b/tests_zemu/snapshots/fl-mainmenu/00002.png new file mode 100644 index 00000000..ffd885fc Binary files /dev/null and b/tests_zemu/snapshots/fl-mainmenu/00002.png differ diff --git a/tests_zemu/snapshots/fl-mainmenu/00003.png b/tests_zemu/snapshots/fl-mainmenu/00003.png new file mode 100644 index 00000000..f4568e79 Binary files /dev/null and b/tests_zemu/snapshots/fl-mainmenu/00003.png differ diff --git a/tests_zemu/snapshots/fl-mainmenu/00004.png b/tests_zemu/snapshots/fl-mainmenu/00004.png new file mode 100644 index 00000000..6489e3e5 Binary files /dev/null and b/tests_zemu/snapshots/fl-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/fl-mainmenu/00005.png b/tests_zemu/snapshots/fl-mainmenu/00005.png new file mode 100644 index 00000000..70943044 Binary files /dev/null and b/tests_zemu/snapshots/fl-mainmenu/00005.png differ diff --git a/tests_zemu/snapshots/fl-mainmenu/00006.png b/tests_zemu/snapshots/fl-mainmenu/00006.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-mainmenu/00006.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign/00000.png b/tests_zemu/snapshots/fl-raw_sign/00000.png new file mode 100644 index 00000000..a0d91483 Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign/00000.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign/00001.png b/tests_zemu/snapshots/fl-raw_sign/00001.png new file mode 100644 index 00000000..975caeb7 Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign/00001.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign/00002.png b/tests_zemu/snapshots/fl-raw_sign/00002.png new file mode 100644 index 00000000..d8ebc054 Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign/00002.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign/00003.png b/tests_zemu/snapshots/fl-raw_sign/00003.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign/00003.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign_hex/00000.png b/tests_zemu/snapshots/fl-raw_sign_hex/00000.png new file mode 100644 index 00000000..a0d91483 Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign_hex/00000.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign_hex/00001.png b/tests_zemu/snapshots/fl-raw_sign_hex/00001.png new file mode 100644 index 00000000..81380bbf Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign_hex/00001.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign_hex/00002.png b/tests_zemu/snapshots/fl-raw_sign_hex/00002.png new file mode 100644 index 00000000..d8ebc054 Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign_hex/00002.png differ diff --git a/tests_zemu/snapshots/fl-raw_sign_hex/00003.png b/tests_zemu/snapshots/fl-raw_sign_hex/00003.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-raw_sign_hex/00003.png differ diff --git a/tests_zemu/snapshots/fl-session_setkeys/00000.png b/tests_zemu/snapshots/fl-session_setkeys/00000.png new file mode 100644 index 00000000..a6275b84 Binary files /dev/null and b/tests_zemu/snapshots/fl-session_setkeys/00000.png differ diff --git a/tests_zemu/snapshots/fl-session_setkeys/00001.png b/tests_zemu/snapshots/fl-session_setkeys/00001.png new file mode 100644 index 00000000..87822d4d Binary files /dev/null and b/tests_zemu/snapshots/fl-session_setkeys/00001.png differ diff --git a/tests_zemu/snapshots/fl-session_setkeys/00002.png b/tests_zemu/snapshots/fl-session_setkeys/00002.png new file mode 100644 index 00000000..cfebc1e9 Binary files /dev/null and b/tests_zemu/snapshots/fl-session_setkeys/00002.png differ diff --git a/tests_zemu/snapshots/fl-session_setkeys/00003.png b/tests_zemu/snapshots/fl-session_setkeys/00003.png new file mode 100644 index 00000000..74ce127f Binary files /dev/null and b/tests_zemu/snapshots/fl-session_setkeys/00003.png differ diff --git a/tests_zemu/snapshots/fl-session_setkeys/00004.png b/tests_zemu/snapshots/fl-session_setkeys/00004.png new file mode 100644 index 00000000..4e21581b Binary files /dev/null and b/tests_zemu/snapshots/fl-session_setkeys/00004.png differ diff --git a/tests_zemu/snapshots/fl-session_setkeys/00005.png b/tests_zemu/snapshots/fl-session_setkeys/00005.png new file mode 100644 index 00000000..55331141 Binary files /dev/null and b/tests_zemu/snapshots/fl-session_setkeys/00005.png differ diff --git a/tests_zemu/snapshots/fl-session_setkeys/00006.png b/tests_zemu/snapshots/fl-session_setkeys/00006.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-session_setkeys/00006.png differ diff --git a/tests_zemu/snapshots/fl-show_address/00000.png b/tests_zemu/snapshots/fl-show_address/00000.png new file mode 100644 index 00000000..407af362 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address/00000.png differ diff --git a/tests_zemu/snapshots/fl-show_address/00001.png b/tests_zemu/snapshots/fl-show_address/00001.png new file mode 100644 index 00000000..ff094ef2 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address/00001.png differ diff --git a/tests_zemu/snapshots/fl-show_address/00002.png b/tests_zemu/snapshots/fl-show_address/00002.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address/00002.png differ diff --git a/tests_zemu/snapshots/fl-show_address_reject/00000.png b/tests_zemu/snapshots/fl-show_address_reject/00000.png new file mode 100644 index 00000000..407af362 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address_reject/00000.png differ diff --git a/tests_zemu/snapshots/fl-show_address_reject/00001.png b/tests_zemu/snapshots/fl-show_address_reject/00001.png new file mode 100644 index 00000000..45c08d4e Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address_reject/00001.png differ diff --git a/tests_zemu/snapshots/fl-show_address_reject/00002.png b/tests_zemu/snapshots/fl-show_address_reject/00002.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-show_address_reject/00002.png differ diff --git a/tests_zemu/snapshots/fl-staking_nominate/00000.png b/tests_zemu/snapshots/fl-staking_nominate/00000.png new file mode 100644 index 00000000..7d93d047 Binary files /dev/null and b/tests_zemu/snapshots/fl-staking_nominate/00000.png differ diff --git a/tests_zemu/snapshots/fl-staking_nominate/00001.png b/tests_zemu/snapshots/fl-staking_nominate/00001.png new file mode 100644 index 00000000..9665c17d Binary files /dev/null and b/tests_zemu/snapshots/fl-staking_nominate/00001.png differ diff --git a/tests_zemu/snapshots/fl-staking_nominate/00002.png b/tests_zemu/snapshots/fl-staking_nominate/00002.png new file mode 100644 index 00000000..82a0816f Binary files /dev/null and b/tests_zemu/snapshots/fl-staking_nominate/00002.png differ diff --git a/tests_zemu/snapshots/fl-staking_nominate/00003.png b/tests_zemu/snapshots/fl-staking_nominate/00003.png new file mode 100644 index 00000000..d95fa101 Binary files /dev/null and b/tests_zemu/snapshots/fl-staking_nominate/00003.png differ diff --git a/tests_zemu/snapshots/fl-staking_nominate/00004.png b/tests_zemu/snapshots/fl-staking_nominate/00004.png new file mode 100644 index 00000000..d020e153 Binary files /dev/null and b/tests_zemu/snapshots/fl-staking_nominate/00004.png differ diff --git a/tests_zemu/snapshots/fl-staking_nominate/00005.png b/tests_zemu/snapshots/fl-staking_nominate/00005.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-staking_nominate/00005.png differ diff --git a/tests_zemu/snapshots/fl-txUtility_batch/00000.png b/tests_zemu/snapshots/fl-txUtility_batch/00000.png new file mode 100644 index 00000000..4dfbe796 Binary files /dev/null and b/tests_zemu/snapshots/fl-txUtility_batch/00000.png differ diff --git a/tests_zemu/snapshots/fl-txUtility_batch/00001.png b/tests_zemu/snapshots/fl-txUtility_batch/00001.png new file mode 100644 index 00000000..7bfed4eb Binary files /dev/null and b/tests_zemu/snapshots/fl-txUtility_batch/00001.png differ diff --git a/tests_zemu/snapshots/fl-txUtility_batch/00002.png b/tests_zemu/snapshots/fl-txUtility_batch/00002.png new file mode 100644 index 00000000..98941de5 Binary files /dev/null and b/tests_zemu/snapshots/fl-txUtility_batch/00002.png differ diff --git a/tests_zemu/snapshots/fl-txUtility_batch/00003.png b/tests_zemu/snapshots/fl-txUtility_batch/00003.png new file mode 100644 index 00000000..c89193ca Binary files /dev/null and b/tests_zemu/snapshots/fl-txUtility_batch/00003.png differ diff --git a/tests_zemu/snapshots/fl-txUtility_batch/00004.png b/tests_zemu/snapshots/fl-txUtility_batch/00004.png new file mode 100644 index 00000000..caf96fa2 Binary files /dev/null and b/tests_zemu/snapshots/fl-txUtility_batch/00004.png differ diff --git a/tests_zemu/snapshots/s-mainmenu/00004.png b/tests_zemu/snapshots/s-mainmenu/00004.png index daf414aa..ed589ff8 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00004.png and b/tests_zemu/snapshots/s-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/s-mainmenu/00010.png b/tests_zemu/snapshots/s-mainmenu/00010.png index daf414aa..ed589ff8 100644 Binary files a/tests_zemu/snapshots/s-mainmenu/00010.png and b/tests_zemu/snapshots/s-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00004.png b/tests_zemu/snapshots/sp-mainmenu/00004.png index 13c2ba35..9f08e339 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00004.png and b/tests_zemu/snapshots/sp-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/sp-mainmenu/00010.png b/tests_zemu/snapshots/sp-mainmenu/00010.png index 13c2ba35..9f08e339 100644 Binary files a/tests_zemu/snapshots/sp-mainmenu/00010.png and b/tests_zemu/snapshots/sp-mainmenu/00010.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer/00000.png b/tests_zemu/snapshots/st-balances_transfer/00000.png index 9a040c09..f0d93721 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer/00000.png and b/tests_zemu/snapshots/st-balances_transfer/00000.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer/00001.png b/tests_zemu/snapshots/st-balances_transfer/00001.png index 16cc274d..bd4c0a07 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer/00001.png and b/tests_zemu/snapshots/st-balances_transfer/00001.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer/00002.png b/tests_zemu/snapshots/st-balances_transfer/00002.png index e8d3fedd..1422a16c 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer/00002.png and b/tests_zemu/snapshots/st-balances_transfer/00002.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer/00003.png b/tests_zemu/snapshots/st-balances_transfer/00003.png index a2b6ea65..0bc9f1b8 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer/00003.png and b/tests_zemu/snapshots/st-balances_transfer/00003.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer/00004.png b/tests_zemu/snapshots/st-balances_transfer/00004.png index 17781d90..598137b8 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer/00004.png and b/tests_zemu/snapshots/st-balances_transfer/00004.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer_expert/00000.png b/tests_zemu/snapshots/st-balances_transfer_expert/00000.png index 9a040c09..b4d1ae34 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer_expert/00000.png and b/tests_zemu/snapshots/st-balances_transfer_expert/00000.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer_expert/00001.png b/tests_zemu/snapshots/st-balances_transfer_expert/00001.png index 9b825d19..43733094 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer_expert/00001.png and b/tests_zemu/snapshots/st-balances_transfer_expert/00001.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer_expert/00002.png b/tests_zemu/snapshots/st-balances_transfer_expert/00002.png index c867334c..fa71c6ae 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer_expert/00002.png and b/tests_zemu/snapshots/st-balances_transfer_expert/00002.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer_expert/00003.png b/tests_zemu/snapshots/st-balances_transfer_expert/00003.png index 5d813423..27f1cf88 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer_expert/00003.png and b/tests_zemu/snapshots/st-balances_transfer_expert/00003.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer_expert/00004.png b/tests_zemu/snapshots/st-balances_transfer_expert/00004.png index 240fb159..4a7a9402 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer_expert/00004.png and b/tests_zemu/snapshots/st-balances_transfer_expert/00004.png differ diff --git a/tests_zemu/snapshots/st-balances_transfer_expert/00005.png b/tests_zemu/snapshots/st-balances_transfer_expert/00005.png index b04e1d92..598137b8 100644 Binary files a/tests_zemu/snapshots/st-balances_transfer_expert/00005.png and b/tests_zemu/snapshots/st-balances_transfer_expert/00005.png differ diff --git a/tests_zemu/snapshots/st-identity_addClaim/00000.png b/tests_zemu/snapshots/st-identity_addClaim/00000.png index 9a040c09..f0d93721 100644 Binary files a/tests_zemu/snapshots/st-identity_addClaim/00000.png and b/tests_zemu/snapshots/st-identity_addClaim/00000.png differ diff --git a/tests_zemu/snapshots/st-identity_addClaim/00001.png b/tests_zemu/snapshots/st-identity_addClaim/00001.png index 35c37a76..b2f6b967 100644 Binary files a/tests_zemu/snapshots/st-identity_addClaim/00001.png and b/tests_zemu/snapshots/st-identity_addClaim/00001.png differ diff --git a/tests_zemu/snapshots/st-identity_addClaim/00002.png b/tests_zemu/snapshots/st-identity_addClaim/00002.png index 4e8129cd..4c9f6940 100644 Binary files a/tests_zemu/snapshots/st-identity_addClaim/00002.png and b/tests_zemu/snapshots/st-identity_addClaim/00002.png differ diff --git a/tests_zemu/snapshots/st-identity_addClaim/00003.png b/tests_zemu/snapshots/st-identity_addClaim/00003.png index a2b6ea65..0bc9f1b8 100644 Binary files a/tests_zemu/snapshots/st-identity_addClaim/00003.png and b/tests_zemu/snapshots/st-identity_addClaim/00003.png differ diff --git a/tests_zemu/snapshots/st-identity_addClaim/00004.png b/tests_zemu/snapshots/st-identity_addClaim/00004.png index 17781d90..598137b8 100644 Binary files a/tests_zemu/snapshots/st-identity_addClaim/00004.png and b/tests_zemu/snapshots/st-identity_addClaim/00004.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00000.png b/tests_zemu/snapshots/st-mainmenu/00000.png index 17781d90..598137b8 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00000.png and b/tests_zemu/snapshots/st-mainmenu/00000.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00001.png b/tests_zemu/snapshots/st-mainmenu/00001.png index fd61cbd5..5c1cb40e 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00001.png and b/tests_zemu/snapshots/st-mainmenu/00001.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00002.png b/tests_zemu/snapshots/st-mainmenu/00002.png index b2f067bc..6a80ca52 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00002.png and b/tests_zemu/snapshots/st-mainmenu/00002.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00003.png b/tests_zemu/snapshots/st-mainmenu/00003.png index fbc6098e..5c1cb40e 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00003.png and b/tests_zemu/snapshots/st-mainmenu/00003.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00004.png b/tests_zemu/snapshots/st-mainmenu/00004.png index b2f067bc..9149053b 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00004.png and b/tests_zemu/snapshots/st-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00005.png b/tests_zemu/snapshots/st-mainmenu/00005.png index 17781d90..7f5829cd 100644 Binary files a/tests_zemu/snapshots/st-mainmenu/00005.png and b/tests_zemu/snapshots/st-mainmenu/00005.png differ diff --git a/tests_zemu/snapshots/st-mainmenu/00006.png b/tests_zemu/snapshots/st-mainmenu/00006.png new file mode 100644 index 00000000..598137b8 Binary files /dev/null and b/tests_zemu/snapshots/st-mainmenu/00006.png differ diff --git a/tests_zemu/snapshots/st-raw_sign/00000.png b/tests_zemu/snapshots/st-raw_sign/00000.png index 9a040c09..51cf4538 100644 Binary files a/tests_zemu/snapshots/st-raw_sign/00000.png and b/tests_zemu/snapshots/st-raw_sign/00000.png differ diff --git a/tests_zemu/snapshots/st-raw_sign/00001.png b/tests_zemu/snapshots/st-raw_sign/00001.png index aaab39a5..bb1b791b 100644 Binary files a/tests_zemu/snapshots/st-raw_sign/00001.png and b/tests_zemu/snapshots/st-raw_sign/00001.png differ diff --git a/tests_zemu/snapshots/st-raw_sign/00002.png b/tests_zemu/snapshots/st-raw_sign/00002.png index ccad04c2..1cd7dc86 100644 Binary files a/tests_zemu/snapshots/st-raw_sign/00002.png and b/tests_zemu/snapshots/st-raw_sign/00002.png differ diff --git a/tests_zemu/snapshots/st-raw_sign/00003.png b/tests_zemu/snapshots/st-raw_sign/00003.png index 17781d90..598137b8 100644 Binary files a/tests_zemu/snapshots/st-raw_sign/00003.png and b/tests_zemu/snapshots/st-raw_sign/00003.png differ diff --git a/tests_zemu/snapshots/st-raw_sign_hex/00000.png b/tests_zemu/snapshots/st-raw_sign_hex/00000.png index 9a040c09..51cf4538 100644 Binary files a/tests_zemu/snapshots/st-raw_sign_hex/00000.png and b/tests_zemu/snapshots/st-raw_sign_hex/00000.png differ diff --git a/tests_zemu/snapshots/st-raw_sign_hex/00001.png b/tests_zemu/snapshots/st-raw_sign_hex/00001.png index 2c3bc65c..d996a9b6 100644 Binary files a/tests_zemu/snapshots/st-raw_sign_hex/00001.png and b/tests_zemu/snapshots/st-raw_sign_hex/00001.png differ diff --git a/tests_zemu/snapshots/st-raw_sign_hex/00002.png b/tests_zemu/snapshots/st-raw_sign_hex/00002.png index 5fceeaf4..1cd7dc86 100644 Binary files a/tests_zemu/snapshots/st-raw_sign_hex/00002.png and b/tests_zemu/snapshots/st-raw_sign_hex/00002.png differ diff --git a/tests_zemu/snapshots/st-raw_sign_hex/00003.png b/tests_zemu/snapshots/st-raw_sign_hex/00003.png index a2b6ea65..598137b8 100644 Binary files a/tests_zemu/snapshots/st-raw_sign_hex/00003.png and b/tests_zemu/snapshots/st-raw_sign_hex/00003.png differ diff --git a/tests_zemu/snapshots/st-session_setkeys/00000.png b/tests_zemu/snapshots/st-session_setkeys/00000.png index 9a040c09..b4d1ae34 100644 Binary files a/tests_zemu/snapshots/st-session_setkeys/00000.png and b/tests_zemu/snapshots/st-session_setkeys/00000.png differ diff --git a/tests_zemu/snapshots/st-session_setkeys/00001.png b/tests_zemu/snapshots/st-session_setkeys/00001.png index d8c82567..cded34b5 100644 Binary files a/tests_zemu/snapshots/st-session_setkeys/00001.png and b/tests_zemu/snapshots/st-session_setkeys/00001.png differ diff --git a/tests_zemu/snapshots/st-session_setkeys/00002.png b/tests_zemu/snapshots/st-session_setkeys/00002.png index c2613da4..5950c6f5 100644 Binary files a/tests_zemu/snapshots/st-session_setkeys/00002.png and b/tests_zemu/snapshots/st-session_setkeys/00002.png differ diff --git a/tests_zemu/snapshots/st-session_setkeys/00003.png b/tests_zemu/snapshots/st-session_setkeys/00003.png index 4f7f069d..75aad4cb 100644 Binary files a/tests_zemu/snapshots/st-session_setkeys/00003.png and b/tests_zemu/snapshots/st-session_setkeys/00003.png differ diff --git a/tests_zemu/snapshots/st-session_setkeys/00004.png b/tests_zemu/snapshots/st-session_setkeys/00004.png index beb36f9e..4a7a9402 100644 Binary files a/tests_zemu/snapshots/st-session_setkeys/00004.png and b/tests_zemu/snapshots/st-session_setkeys/00004.png differ diff --git a/tests_zemu/snapshots/st-session_setkeys/00005.png b/tests_zemu/snapshots/st-session_setkeys/00005.png index b04e1d92..598137b8 100644 Binary files a/tests_zemu/snapshots/st-session_setkeys/00005.png and b/tests_zemu/snapshots/st-session_setkeys/00005.png differ diff --git a/tests_zemu/snapshots/st-show_address/00000.png b/tests_zemu/snapshots/st-show_address/00000.png index 0a003d86..d7af0d7f 100644 Binary files a/tests_zemu/snapshots/st-show_address/00000.png and b/tests_zemu/snapshots/st-show_address/00000.png differ diff --git a/tests_zemu/snapshots/st-show_address/00001.png b/tests_zemu/snapshots/st-show_address/00001.png index af4afe49..b439200b 100644 Binary files a/tests_zemu/snapshots/st-show_address/00001.png and b/tests_zemu/snapshots/st-show_address/00001.png differ diff --git a/tests_zemu/snapshots/st-show_address/00002.png b/tests_zemu/snapshots/st-show_address/00002.png index 17781d90..598137b8 100644 Binary files a/tests_zemu/snapshots/st-show_address/00002.png and b/tests_zemu/snapshots/st-show_address/00002.png differ diff --git a/tests_zemu/snapshots/st-show_address_reject/00000.png b/tests_zemu/snapshots/st-show_address_reject/00000.png index 0a003d86..d7af0d7f 100644 Binary files a/tests_zemu/snapshots/st-show_address_reject/00000.png and b/tests_zemu/snapshots/st-show_address_reject/00000.png differ diff --git a/tests_zemu/snapshots/st-show_address_reject/00001.png b/tests_zemu/snapshots/st-show_address_reject/00001.png index af4afe49..94c91bb6 100644 Binary files a/tests_zemu/snapshots/st-show_address_reject/00001.png and b/tests_zemu/snapshots/st-show_address_reject/00001.png differ diff --git a/tests_zemu/snapshots/st-show_address_reject/00002.png b/tests_zemu/snapshots/st-show_address_reject/00002.png index 8c5f472e..598137b8 100644 Binary files a/tests_zemu/snapshots/st-show_address_reject/00002.png and b/tests_zemu/snapshots/st-show_address_reject/00002.png differ diff --git a/tests_zemu/snapshots/st-staking_nominate/00000.png b/tests_zemu/snapshots/st-staking_nominate/00000.png index 9a040c09..f0d93721 100644 Binary files a/tests_zemu/snapshots/st-staking_nominate/00000.png and b/tests_zemu/snapshots/st-staking_nominate/00000.png differ diff --git a/tests_zemu/snapshots/st-staking_nominate/00001.png b/tests_zemu/snapshots/st-staking_nominate/00001.png index bb960c4f..0bb41442 100644 Binary files a/tests_zemu/snapshots/st-staking_nominate/00001.png and b/tests_zemu/snapshots/st-staking_nominate/00001.png differ diff --git a/tests_zemu/snapshots/st-staking_nominate/00002.png b/tests_zemu/snapshots/st-staking_nominate/00002.png index f816a76c..c9938133 100644 Binary files a/tests_zemu/snapshots/st-staking_nominate/00002.png and b/tests_zemu/snapshots/st-staking_nominate/00002.png differ diff --git a/tests_zemu/snapshots/st-staking_nominate/00003.png b/tests_zemu/snapshots/st-staking_nominate/00003.png index 29f49de2..0bc9f1b8 100644 Binary files a/tests_zemu/snapshots/st-staking_nominate/00003.png and b/tests_zemu/snapshots/st-staking_nominate/00003.png differ diff --git a/tests_zemu/snapshots/st-staking_nominate/00004.png b/tests_zemu/snapshots/st-staking_nominate/00004.png index 1cc2e36d..598137b8 100644 Binary files a/tests_zemu/snapshots/st-staking_nominate/00004.png and b/tests_zemu/snapshots/st-staking_nominate/00004.png differ diff --git a/tests_zemu/snapshots/st-txUtility_batch/00000.png b/tests_zemu/snapshots/st-txUtility_batch/00000.png index 9a040c09..f0d93721 100644 Binary files a/tests_zemu/snapshots/st-txUtility_batch/00000.png and b/tests_zemu/snapshots/st-txUtility_batch/00000.png differ diff --git a/tests_zemu/snapshots/st-txUtility_batch/00001.png b/tests_zemu/snapshots/st-txUtility_batch/00001.png index 9d3c23c0..27747be5 100644 Binary files a/tests_zemu/snapshots/st-txUtility_batch/00001.png and b/tests_zemu/snapshots/st-txUtility_batch/00001.png differ diff --git a/tests_zemu/snapshots/st-txUtility_batch/00002.png b/tests_zemu/snapshots/st-txUtility_batch/00002.png index 1738dc77..1422a16c 100644 Binary files a/tests_zemu/snapshots/st-txUtility_batch/00002.png and b/tests_zemu/snapshots/st-txUtility_batch/00002.png differ diff --git a/tests_zemu/snapshots/st-txUtility_batch/00003.png b/tests_zemu/snapshots/st-txUtility_batch/00003.png index a2b6ea65..0bc9f1b8 100644 Binary files a/tests_zemu/snapshots/st-txUtility_batch/00003.png and b/tests_zemu/snapshots/st-txUtility_batch/00003.png differ diff --git a/tests_zemu/snapshots/st-txUtility_batch/00004.png b/tests_zemu/snapshots/st-txUtility_batch/00004.png index 17781d90..598137b8 100644 Binary files a/tests_zemu/snapshots/st-txUtility_batch/00004.png and b/tests_zemu/snapshots/st-txUtility_batch/00004.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00004.png b/tests_zemu/snapshots/x-mainmenu/00004.png index 13c2ba35..9f08e339 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00004.png and b/tests_zemu/snapshots/x-mainmenu/00004.png differ diff --git a/tests_zemu/snapshots/x-mainmenu/00010.png b/tests_zemu/snapshots/x-mainmenu/00010.png index 13c2ba35..9f08e339 100644 Binary files a/tests_zemu/snapshots/x-mainmenu/00010.png and b/tests_zemu/snapshots/x-mainmenu/00010.png differ diff --git a/tests_zemu/tests/common.ts b/tests_zemu/tests/common.ts index 123a0093..b5443309 100644 --- a/tests_zemu/tests/common.ts +++ b/tests_zemu/tests/common.ts @@ -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 }, ] diff --git a/tests_zemu/tests/standard.test.ts b/tests_zemu/tests/standard.test.ts index 2a61c405..30e61b44 100644 --- a/tests_zemu/tests/standard.test.ts +++ b/tests_zemu/tests/standard.test.ts @@ -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' @@ -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') @@ -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') @@ -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() }