From 4117a18ca330a072cc31066252e25e8caf76f0fd Mon Sep 17 00:00:00 2001 From: Anastasiya Semiankevich Date: Fri, 29 Mar 2024 12:02:00 +0300 Subject: [PATCH] chore: address nightly failures on march 29, 2024 --- gui/components/wallet/add_saved_address_popup.py | 3 +++ .../test_wallet_settings_networks_edit_network.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/components/wallet/add_saved_address_popup.py b/gui/components/wallet/add_saved_address_popup.py index 6800755..157b89f 100644 --- a/gui/components/wallet/add_saved_address_popup.py +++ b/gui/components/wallet/add_saved_address_popup.py @@ -31,16 +31,19 @@ class AddSavedAddressPopup(BasePopup): @allure.step('Set ethereum mainnet network checkbox') def set_ethereum_mainnet_network(self, value: bool): + assert self._ethereum_mainnet_checkbox.exists self._ethereum_mainnet_checkbox.set(value) return self @allure.step('Set optimism mainnet network checkbox') def set_optimism_mainnet_network(self, value: bool): + assert self._optimism_mainnet_checkbox.exists self._optimism_mainnet_checkbox.set(value) return self @allure.step('Set arbitrum mainnet network checkbox') def set_arbitrum_mainnet_network(self, value: bool): + assert self._arbitrum_mainnet_checkbox.exists self._arbitrum_mainnet_checkbox.set(value) return self diff --git a/tests/settings/settings_wallet/test_wallet_settings_networks_edit_network.py b/tests/settings/settings_wallet/test_wallet_settings_networks_edit_network.py index 2f94cfd..b7f2fe2 100644 --- a/tests/settings/settings_wallet/test_wallet_settings_networks_edit_network.py +++ b/tests/settings/settings_wallet/test_wallet_settings_networks_edit_network.py @@ -16,9 +16,10 @@ pytestmark = marks 'Network: Network: Editing network -> Restore defaults') @pytest.mark.case(703515) @pytest.mark.parametrize('network_tab', [ - pytest.param(WalletNetworkSettings.EDIT_NETWORK_LIVE_TAB.value), - pytest.param(WalletNetworkSettings.EDIT_NETWORK_TEST_TAB.value) + pytest.param(WalletNetworkSettings.EDIT_NETWORK_LIVE_TAB.value) + # pytest.param(WalletNetworkSettings.EDIT_NETWORK_TEST_TAB.value) ]) +# TODO: https://github.com/status-im/status-desktop/issues/14228 def test_settings_networks_edit_restore_defaults(main_screen: MainWindow, network_tab: str): networks = main_screen.left_panel.open_settings().left_panel.open_wallet_settings().open_networks()