diff --git a/src/common/ui/menu_nbgl.c b/src/common/ui/menu_nbgl.c index 1c508eac..5053b48d 100644 --- a/src/common/ui/menu_nbgl.c +++ b/src/common/ui/menu_nbgl.c @@ -37,115 +37,21 @@ void app_quit(void) { #define SETTING_INFO_NB 2 static const char* const INFO_TYPES[SETTING_INFO_NB] = {"Version", "Developer"}; static const char* const INFO_CONTENTS[SETTING_INFO_NB] = {APPVERSION, "Blooo"}; - -// settings switches definitions -enum { DUMMY_SWITCH_1_TOKEN = FIRST_USER_TOKEN, DUMMY_SWITCH_2_TOKEN }; -enum { DUMMY_SWITCH_1_ID = 0, DUMMY_SWITCH_2_ID, SETTINGS_SWITCHES_NB }; - -static nbgl_contentSwitch_t switches[SETTINGS_SWITCHES_NB] = {0}; - static const nbgl_contentInfoList_t infoList = { .nbInfos = SETTING_INFO_NB, .infoTypes = INFO_TYPES, .infoContents = INFO_CONTENTS, }; -static uint8_t initSettingPage; -static void review_warning_choice(bool confirm); -static void controls_callback(int token, uint8_t index, int page); - -// settings menu definition -#define SETTING_CONTENTS_NB 1 -static const nbgl_content_t contents[SETTING_CONTENTS_NB] = { - {.type = SWITCHES_LIST, - .content.switchesList.nbSwitches = SETTINGS_SWITCHES_NB, - .content.switchesList.switches = switches, - .contentActionCallback = controls_callback}}; - -static const nbgl_genericContents_t settingContents = {.callbackCallNeeded = false, - .contentsList = contents, - .nbContents = SETTING_CONTENTS_NB}; - -// callback for setting warning choice -static void review_warning_choice(bool confirm) { - uint8_t switch_value; - if (confirm) { - // toggle the switch value - switch_value = !N_storage.dummy2_allowed; - switches[DUMMY_SWITCH_2_ID].initState = (nbgl_state_t)switch_value; - // store the new setting value in NVM - nvm_write((void*)&N_storage.dummy2_allowed, &switch_value, 1); - } - - // Reset setting menu to the right page - nbgl_useCaseHomeAndSettings(APPNAME, - &C_app_concordium_64px, - NULL, - initSettingPage, - &settingContents, - &infoList, - NULL, - app_quit); -} - -static void controls_callback(int token, uint8_t index, int page) { - UNUSED(index); - - initSettingPage = page; - - uint8_t switch_value; - if (token == DUMMY_SWITCH_1_TOKEN) { - // Dummy 1 switch touched - // toggle the switch value - switch_value = !N_storage.dummy1_allowed; - switches[DUMMY_SWITCH_1_ID].initState = (nbgl_state_t)switch_value; - // store the new setting value in NVM - nvm_write((void*)&N_storage.dummy1_allowed, &switch_value, 1); - } else if (token == DUMMY_SWITCH_2_TOKEN) { - // Dummy 2 switch touched - - // in this example we display a warning when the user wants - // to activate the dummy 2 setting - if (!N_storage.dummy2_allowed) { - // Display the warning message and ask the user to confirm - nbgl_useCaseChoice(&C_Warning_64px, - "Dummy 2", - "Are you sure to\nallow dummy 2\nin transactions?", - "I understand, confirm", - "Cancel", - review_warning_choice); - } else { - // toggle the switch value - switch_value = !N_storage.dummy2_allowed; - switches[DUMMY_SWITCH_2_ID].initState = (nbgl_state_t)switch_value; - // store the new setting value in NVM - nvm_write((void*)&N_storage.dummy2_allowed, &switch_value, 1); - } - } -} - // home page definition void ui_menu_main(void) { tx_state->currentInstruction = -1; - // Initialize switches data - switches[DUMMY_SWITCH_1_ID].initState = (nbgl_state_t)N_storage.dummy1_allowed; - switches[DUMMY_SWITCH_1_ID].text = "Dummy 1"; - switches[DUMMY_SWITCH_1_ID].subText = "Allow dummy 1\nin transactions"; - switches[DUMMY_SWITCH_1_ID].token = DUMMY_SWITCH_1_TOKEN; - switches[DUMMY_SWITCH_1_ID].tuneId = TUNE_TAP_CASUAL; - - switches[DUMMY_SWITCH_2_ID].initState = (nbgl_state_t)N_storage.dummy2_allowed; - switches[DUMMY_SWITCH_2_ID].text = "Dummy 2"; - switches[DUMMY_SWITCH_2_ID].subText = "Allow dummy 2\nin transactions"; - switches[DUMMY_SWITCH_2_ID].token = DUMMY_SWITCH_2_TOKEN; - switches[DUMMY_SWITCH_2_ID].tuneId = TUNE_TAP_CASUAL; - nbgl_useCaseHomeAndSettings(APPNAME, &C_app_concordium_64px, NULL, INIT_HOME_PAGE, - &settingContents, + NULL, &infoList, NULL, app_quit); diff --git a/tests/snapshots/flex/test_app_mainmenu/00000.png b/tests/snapshots/flex/test_app_mainmenu/00000.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_app_mainmenu/00000.png and b/tests/snapshots/flex/test_app_mainmenu/00000.png differ diff --git a/tests/snapshots/flex/test_app_mainmenu/00001.png b/tests/snapshots/flex/test_app_mainmenu/00001.png index ea707cae..61163c79 100644 Binary files a/tests/snapshots/flex/test_app_mainmenu/00001.png and b/tests/snapshots/flex/test_app_mainmenu/00001.png differ diff --git a/tests/snapshots/flex/test_app_mainmenu/00002.png b/tests/snapshots/flex/test_app_mainmenu/00002.png index 6906a3e9..86796430 100644 Binary files a/tests/snapshots/flex/test_app_mainmenu/00002.png and b/tests/snapshots/flex/test_app_mainmenu/00002.png differ diff --git a/tests/snapshots/flex/test_deploy_module/00003.png b/tests/snapshots/flex/test_deploy_module/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_deploy_module/00003.png and b/tests/snapshots/flex/test_deploy_module/00003.png differ diff --git a/tests/snapshots/flex/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png b/tests/snapshots/flex/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png and b/tests/snapshots/flex/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png differ diff --git a/tests/snapshots/flex/test_export_recovery_private_key_legacy_path/00003.png b/tests/snapshots/flex/test_export_recovery_private_key_legacy_path/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_export_recovery_private_key_legacy_path/00003.png and b/tests/snapshots/flex/test_export_recovery_private_key_legacy_path/00003.png differ diff --git a/tests/snapshots/flex/test_export_standard_private_key_legacy_path/00003.png b/tests/snapshots/flex/test_export_standard_private_key_legacy_path/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_export_standard_private_key_legacy_path/00003.png and b/tests/snapshots/flex/test_export_standard_private_key_legacy_path/00003.png differ diff --git a/tests/snapshots/flex/test_export_standard_private_key_new_path/00003.png b/tests/snapshots/flex/test_export_standard_private_key_new_path/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_export_standard_private_key_new_path/00003.png and b/tests/snapshots/flex/test_export_standard_private_key_new_path/00003.png differ diff --git a/tests/snapshots/flex/test_get_public_key_confirm_refused/00002.png b/tests/snapshots/flex/test_get_public_key_confirm_refused/00002.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_get_public_key_confirm_refused/00002.png and b/tests/snapshots/flex/test_get_public_key_confirm_refused/00002.png differ diff --git a/tests/snapshots/flex/test_init_contract/00004.png b/tests/snapshots/flex/test_init_contract/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_init_contract/00004.png and b/tests/snapshots/flex/test_init_contract/00004.png differ diff --git a/tests/snapshots/flex/test_init_contract_long_name_and_params/00004.png b/tests/snapshots/flex/test_init_contract_long_name_and_params/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_init_contract_long_name_and_params/00004.png and b/tests/snapshots/flex/test_init_contract_long_name_and_params/00004.png differ diff --git a/tests/snapshots/flex/test_sign_configure_baker_all_parameters_3/00003.png b/tests/snapshots/flex/test_sign_configure_baker_all_parameters_3/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_baker_all_parameters_3/00003.png and b/tests/snapshots/flex/test_sign_configure_baker_all_parameters_3/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png b/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png and b/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png differ diff --git a/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_without_keys/00004.png b/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_without_keys/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_without_keys/00004.png and b/tests/snapshots/flex/test_sign_configure_baker_capital_restake_open_status_without_keys/00004.png differ diff --git a/tests/snapshots/flex/test_sign_configure_baker_commission_rate_only/00004.png b/tests/snapshots/flex/test_sign_configure_baker_commission_rate_only/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_baker_commission_rate_only/00004.png and b/tests/snapshots/flex/test_sign_configure_baker_commission_rate_only/00004.png differ diff --git a/tests/snapshots/flex/test_sign_configure_baker_only_keys/00003.png b/tests/snapshots/flex/test_sign_configure_baker_only_keys/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_baker_only_keys/00003.png and b/tests/snapshots/flex/test_sign_configure_baker_only_keys/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_baker_stop_baking/00003.png b/tests/snapshots/flex/test_sign_configure_baker_stop_baking/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_baker_stop_baking/00003.png and b/tests/snapshots/flex/test_sign_configure_baker_stop_baking/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_baker_url_only/00004.png b/tests/snapshots/flex/test_sign_configure_baker_url_only/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_baker_url_only/00004.png and b/tests/snapshots/flex/test_sign_configure_baker_url_only/00004.png differ diff --git a/tests/snapshots/flex/test_sign_configure_delegation_capital/00003.png b/tests/snapshots/flex/test_sign_configure_delegation_capital/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_delegation_capital/00003.png and b/tests/snapshots/flex/test_sign_configure_delegation_capital/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_delegation_capital_restake_target/00004.png b/tests/snapshots/flex/test_sign_configure_delegation_capital_restake_target/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_delegation_capital_restake_target/00004.png and b/tests/snapshots/flex/test_sign_configure_delegation_capital_restake_target/00004.png differ diff --git a/tests/snapshots/flex/test_sign_configure_delegation_capital_target/00003.png b/tests/snapshots/flex/test_sign_configure_delegation_capital_target/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_delegation_capital_target/00003.png and b/tests/snapshots/flex/test_sign_configure_delegation_capital_target/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_delegation_passive_delegation/00003.png b/tests/snapshots/flex/test_sign_configure_delegation_passive_delegation/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_delegation_passive_delegation/00003.png and b/tests/snapshots/flex/test_sign_configure_delegation_passive_delegation/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_delegation_restake/00003.png b/tests/snapshots/flex/test_sign_configure_delegation_restake/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_delegation_restake/00003.png and b/tests/snapshots/flex/test_sign_configure_delegation_restake/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_delegation_stop_delegation/00003.png b/tests/snapshots/flex/test_sign_configure_delegation_stop_delegation/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_delegation_stop_delegation/00003.png and b/tests/snapshots/flex/test_sign_configure_delegation_stop_delegation/00003.png differ diff --git a/tests/snapshots/flex/test_sign_configure_delegation_target/00003.png b/tests/snapshots/flex/test_sign_configure_delegation_target/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_configure_delegation_target/00003.png and b/tests/snapshots/flex/test_sign_configure_delegation_target/00003.png differ diff --git a/tests/snapshots/flex/test_sign_tx_simple_transfer_legacy_path/00004.png b/tests/snapshots/flex/test_sign_tx_simple_transfer_legacy_path/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_tx_simple_transfer_legacy_path/00004.png and b/tests/snapshots/flex/test_sign_tx_simple_transfer_legacy_path/00004.png differ diff --git a/tests/snapshots/flex/test_sign_tx_simple_transfer_new_path/00004.png b/tests/snapshots/flex/test_sign_tx_simple_transfer_new_path/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_tx_simple_transfer_new_path/00004.png and b/tests/snapshots/flex/test_sign_tx_simple_transfer_new_path/00004.png differ diff --git a/tests/snapshots/flex/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png b/tests/snapshots/flex/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png and b/tests/snapshots/flex/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png differ diff --git a/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png b/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png and b/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png differ diff --git a/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_legacy_path/00018.png b/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_legacy_path/00018.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_legacy_path/00018.png and b/tests/snapshots/flex/test_sign_tx_transfer_with_schedule_legacy_path/00018.png differ diff --git a/tests/snapshots/flex/test_transfer_to_public/00003.png b/tests/snapshots/flex/test_transfer_to_public/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_transfer_to_public/00003.png and b/tests/snapshots/flex/test_transfer_to_public/00003.png differ diff --git a/tests/snapshots/flex/test_update_contract/00004.png b/tests/snapshots/flex/test_update_contract/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_update_contract/00004.png and b/tests/snapshots/flex/test_update_contract/00004.png differ diff --git a/tests/snapshots/flex/test_verify_address_confirm_legacy_path_accepted/00003.png b/tests/snapshots/flex/test_verify_address_confirm_legacy_path_accepted/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_verify_address_confirm_legacy_path_accepted/00003.png and b/tests/snapshots/flex/test_verify_address_confirm_legacy_path_accepted/00003.png differ diff --git a/tests/snapshots/flex/test_verify_address_confirm_new_path_accepted/00003.png b/tests/snapshots/flex/test_verify_address_confirm_new_path_accepted/00003.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_verify_address_confirm_new_path_accepted/00003.png and b/tests/snapshots/flex/test_verify_address_confirm_new_path_accepted/00003.png differ diff --git a/tests/snapshots/flex/test_verify_address_confirm_refused/00004.png b/tests/snapshots/flex/test_verify_address_confirm_refused/00004.png index ea645d60..86796430 100644 Binary files a/tests/snapshots/flex/test_verify_address_confirm_refused/00004.png and b/tests/snapshots/flex/test_verify_address_confirm_refused/00004.png differ diff --git a/tests/snapshots/stax/test_app_mainmenu/00000.png b/tests/snapshots/stax/test_app_mainmenu/00000.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_app_mainmenu/00000.png and b/tests/snapshots/stax/test_app_mainmenu/00000.png differ diff --git a/tests/snapshots/stax/test_app_mainmenu/00001.png b/tests/snapshots/stax/test_app_mainmenu/00001.png index 739cefe5..3d92253e 100644 Binary files a/tests/snapshots/stax/test_app_mainmenu/00001.png and b/tests/snapshots/stax/test_app_mainmenu/00001.png differ diff --git a/tests/snapshots/stax/test_app_mainmenu/00002.png b/tests/snapshots/stax/test_app_mainmenu/00002.png index 70071ef4..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_app_mainmenu/00002.png and b/tests/snapshots/stax/test_app_mainmenu/00002.png differ diff --git a/tests/snapshots/stax/test_deploy_module/00003.png b/tests/snapshots/stax/test_deploy_module/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_deploy_module/00003.png and b/tests/snapshots/stax/test_deploy_module/00003.png differ diff --git a/tests/snapshots/stax/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png b/tests/snapshots/stax/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png and b/tests/snapshots/stax/test_export_prfkey_and_idcredsed_private_key_legacy_path/00003.png differ diff --git a/tests/snapshots/stax/test_export_recovery_private_key_legacy_path/00003.png b/tests/snapshots/stax/test_export_recovery_private_key_legacy_path/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_export_recovery_private_key_legacy_path/00003.png and b/tests/snapshots/stax/test_export_recovery_private_key_legacy_path/00003.png differ diff --git a/tests/snapshots/stax/test_export_standard_private_key_legacy_path/00003.png b/tests/snapshots/stax/test_export_standard_private_key_legacy_path/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_export_standard_private_key_legacy_path/00003.png and b/tests/snapshots/stax/test_export_standard_private_key_legacy_path/00003.png differ diff --git a/tests/snapshots/stax/test_export_standard_private_key_new_path/00003.png b/tests/snapshots/stax/test_export_standard_private_key_new_path/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_export_standard_private_key_new_path/00003.png and b/tests/snapshots/stax/test_export_standard_private_key_new_path/00003.png differ diff --git a/tests/snapshots/stax/test_get_public_key_confirm_refused/00002.png b/tests/snapshots/stax/test_get_public_key_confirm_refused/00002.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_get_public_key_confirm_refused/00002.png and b/tests/snapshots/stax/test_get_public_key_confirm_refused/00002.png differ diff --git a/tests/snapshots/stax/test_init_contract/00004.png b/tests/snapshots/stax/test_init_contract/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_init_contract/00004.png and b/tests/snapshots/stax/test_init_contract/00004.png differ diff --git a/tests/snapshots/stax/test_init_contract_long_name_and_params/00004.png b/tests/snapshots/stax/test_init_contract_long_name_and_params/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_init_contract_long_name_and_params/00004.png and b/tests/snapshots/stax/test_init_contract_long_name_and_params/00004.png differ diff --git a/tests/snapshots/stax/test_sign_configure_baker_all_parameters_3/00003.png b/tests/snapshots/stax/test_sign_configure_baker_all_parameters_3/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_baker_all_parameters_3/00003.png and b/tests/snapshots/stax/test_sign_configure_baker_all_parameters_3/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png b/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png and b/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_and_keys/00004.png differ diff --git a/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_without_keys/00003.png b/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_without_keys/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_without_keys/00003.png and b/tests/snapshots/stax/test_sign_configure_baker_capital_restake_open_status_without_keys/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_baker_commission_rate_only/00004.png b/tests/snapshots/stax/test_sign_configure_baker_commission_rate_only/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_baker_commission_rate_only/00004.png and b/tests/snapshots/stax/test_sign_configure_baker_commission_rate_only/00004.png differ diff --git a/tests/snapshots/stax/test_sign_configure_baker_only_keys/00003.png b/tests/snapshots/stax/test_sign_configure_baker_only_keys/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_baker_only_keys/00003.png and b/tests/snapshots/stax/test_sign_configure_baker_only_keys/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_baker_stop_baking/00003.png b/tests/snapshots/stax/test_sign_configure_baker_stop_baking/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_baker_stop_baking/00003.png and b/tests/snapshots/stax/test_sign_configure_baker_stop_baking/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_baker_url_only/00004.png b/tests/snapshots/stax/test_sign_configure_baker_url_only/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_baker_url_only/00004.png and b/tests/snapshots/stax/test_sign_configure_baker_url_only/00004.png differ diff --git a/tests/snapshots/stax/test_sign_configure_delegation_capital/00003.png b/tests/snapshots/stax/test_sign_configure_delegation_capital/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_delegation_capital/00003.png and b/tests/snapshots/stax/test_sign_configure_delegation_capital/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_delegation_capital_restake_target/00003.png b/tests/snapshots/stax/test_sign_configure_delegation_capital_restake_target/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_delegation_capital_restake_target/00003.png and b/tests/snapshots/stax/test_sign_configure_delegation_capital_restake_target/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_delegation_capital_target/00003.png b/tests/snapshots/stax/test_sign_configure_delegation_capital_target/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_delegation_capital_target/00003.png and b/tests/snapshots/stax/test_sign_configure_delegation_capital_target/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_delegation_passive_delegation/00003.png b/tests/snapshots/stax/test_sign_configure_delegation_passive_delegation/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_delegation_passive_delegation/00003.png and b/tests/snapshots/stax/test_sign_configure_delegation_passive_delegation/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_delegation_restake/00003.png b/tests/snapshots/stax/test_sign_configure_delegation_restake/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_delegation_restake/00003.png and b/tests/snapshots/stax/test_sign_configure_delegation_restake/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_delegation_stop_delegation/00003.png b/tests/snapshots/stax/test_sign_configure_delegation_stop_delegation/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_delegation_stop_delegation/00003.png and b/tests/snapshots/stax/test_sign_configure_delegation_stop_delegation/00003.png differ diff --git a/tests/snapshots/stax/test_sign_configure_delegation_target/00003.png b/tests/snapshots/stax/test_sign_configure_delegation_target/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_configure_delegation_target/00003.png and b/tests/snapshots/stax/test_sign_configure_delegation_target/00003.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple_transfer_legacy_path/00004.png b/tests/snapshots/stax/test_sign_tx_simple_transfer_legacy_path/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple_transfer_legacy_path/00004.png and b/tests/snapshots/stax/test_sign_tx_simple_transfer_legacy_path/00004.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple_transfer_new_path/00004.png b/tests/snapshots/stax/test_sign_tx_simple_transfer_new_path/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple_transfer_new_path/00004.png and b/tests/snapshots/stax/test_sign_tx_simple_transfer_new_path/00004.png differ diff --git a/tests/snapshots/stax/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png b/tests/snapshots/stax/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png and b/tests/snapshots/stax/test_sign_tx_simple_transfer_with_memo_legacy_path/00004.png differ diff --git a/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png b/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png and b/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_and_memo_legacy_path/00018.png differ diff --git a/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_legacy_path/00018.png b/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_legacy_path/00018.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_legacy_path/00018.png and b/tests/snapshots/stax/test_sign_tx_transfer_with_schedule_legacy_path/00018.png differ diff --git a/tests/snapshots/stax/test_transfer_to_public/00003.png b/tests/snapshots/stax/test_transfer_to_public/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_transfer_to_public/00003.png and b/tests/snapshots/stax/test_transfer_to_public/00003.png differ diff --git a/tests/snapshots/stax/test_update_contract/00003.png b/tests/snapshots/stax/test_update_contract/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_update_contract/00003.png and b/tests/snapshots/stax/test_update_contract/00003.png differ diff --git a/tests/snapshots/stax/test_verify_address_confirm_legacy_path_accepted/00003.png b/tests/snapshots/stax/test_verify_address_confirm_legacy_path_accepted/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_verify_address_confirm_legacy_path_accepted/00003.png and b/tests/snapshots/stax/test_verify_address_confirm_legacy_path_accepted/00003.png differ diff --git a/tests/snapshots/stax/test_verify_address_confirm_new_path_accepted/00003.png b/tests/snapshots/stax/test_verify_address_confirm_new_path_accepted/00003.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_verify_address_confirm_new_path_accepted/00003.png and b/tests/snapshots/stax/test_verify_address_confirm_new_path_accepted/00003.png differ diff --git a/tests/snapshots/stax/test_verify_address_confirm_refused/00004.png b/tests/snapshots/stax/test_verify_address_confirm_refused/00004.png index f0407603..09d8f01a 100644 Binary files a/tests/snapshots/stax/test_verify_address_confirm_refused/00004.png and b/tests/snapshots/stax/test_verify_address_confirm_refused/00004.png differ diff --git a/tests/test_app_mainmenu.py b/tests/test_app_mainmenu.py index bf88f29d..384ae9d6 100644 --- a/tests/test_app_mainmenu.py +++ b/tests/test_app_mainmenu.py @@ -13,26 +13,9 @@ def test_app_mainmenu(firmware, navigator, test_name, default_screenshot_path): NavInsID.RIGHT_CLICK, NavInsID.RIGHT_CLICK, ] - elif firmware is Firmware.STAX: - instructions = [ - NavInsID.USE_CASE_HOME_SETTINGS, - NavIns(NavInsID.TOUCH, (200, 113)), - NavIns(NavInsID.TOUCH, (200, 261)), - NavInsID.USE_CASE_CHOICE_CONFIRM, - NavIns(NavInsID.TOUCH, (200, 261)), - NavInsID.USE_CASE_SETTINGS_NEXT, - NavInsID.USE_CASE_SETTINGS_MULTI_PAGE_EXIT, - ] - elif firmware is Firmware.FLEX: - instructions = [ - NavInsID.USE_CASE_HOME_SETTINGS, - NavIns(NavInsID.TOUCH, (200, 113)), - NavIns(NavInsID.TOUCH, (200, 300)), - NavInsID.USE_CASE_CHOICE_CONFIRM, - NavIns(NavInsID.TOUCH, (200, 300)), - NavInsID.USE_CASE_SETTINGS_NEXT, - NavInsID.USE_CASE_SETTINGS_MULTI_PAGE_EXIT, - ] + else: + instructions = [NavInsID.USE_CASE_HOME_SETTINGS, NavInsID.LEFT_HEADER_TAP] + navigator.navigate_and_compare( default_screenshot_path, test_name,