From 0bd7836f47b1c4bb7421858abe382b49629e1c7f Mon Sep 17 00:00:00 2001 From: Valentina Novgorodtceva Date: Tue, 16 Jan 2024 13:24:39 +0700 Subject: [PATCH] chore: test edit network fixed --- constants/wallet.py | 4 ++-- gui/screens/settings_wallet.py | 14 ++++++-------- .../test_wallet_settings_networks_edit_network.py | 1 - 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/constants/wallet.py b/constants/wallet.py index 86dca896..edce675c 100644 --- a/constants/wallet.py +++ b/constants/wallet.py @@ -45,8 +45,8 @@ class WalletNetworkNaming(Enum): class WalletNetworkDefaultValues(Enum): - ETHEREUM_LIVE_MAIN = 'https://eth-archival.gateway.pokt.network' - ETHEREUM_TEST_MAIN = 'https://goerli-archival.gateway.pokt.network' + ETHEREUM_LIVE_MAIN = 'https://eth-archival.rpc.grove.city' + ETHEREUM_TEST_MAIN = 'https://goerli-archival.rpc.grove.city' ETHEREUM_LIVE_FAILOVER = 'https://mainnet.infura.io' ETHEREUM_TEST_FAILOVER = 'https://goerli.infura.io' diff --git a/gui/screens/settings_wallet.py b/gui/screens/settings_wallet.py index 3e463181..e019b879 100644 --- a/gui/screens/settings_wallet.py +++ b/gui/screens/settings_wallet.py @@ -461,14 +461,12 @@ def verify_edit_network_main_json_rpc_url_value(self, network_tab): self._live_network_tab.click() current_value = self.get_edit_network_main_json_rpc_url_value() return True if current_value.startswith( - WalletNetworkDefaultValues.ETHEREUM_LIVE_MAIN.value) and current_value.endswith("****") \ - else False + WalletNetworkDefaultValues.ETHEREUM_LIVE_MAIN.value) and current_value.endswith("****") else False case WalletNetworkSettings.EDIT_NETWORK_TEST_TAB.value: self._test_network_tab.click() current_value = self.get_edit_network_main_json_rpc_url_value() return True if current_value.startswith( - WalletNetworkDefaultValues.ETHEREUM_TEST_MAIN.value) and current_value.endswith("****") \ - else False + WalletNetworkDefaultValues.ETHEREUM_TEST_MAIN.value) and current_value.endswith("****") else False @allure.step('Verify value in Failover JSON RPC input') def verify_edit_network_failover_json_rpc_url_value(self, network_tab): @@ -477,14 +475,14 @@ def verify_edit_network_failover_json_rpc_url_value(self, network_tab): self._live_network_tab.click() current_value = self.get_edit_network_failover_json_rpc_url_value() return True if current_value.startswith( - WalletNetworkDefaultValues.ETHEREUM_LIVE_FAILOVER.value) and current_value.endswith("****") \ - else False + WalletNetworkDefaultValues.ETHEREUM_LIVE_FAILOVER.value) and current_value.endswith( + "****") else False case WalletNetworkSettings.EDIT_NETWORK_TEST_TAB.value: self._test_network_tab.click() current_value = self.get_edit_network_failover_json_rpc_url_value() return True if current_value.startswith( - WalletNetworkDefaultValues.ETHEREUM_TEST_FAILOVER.value) and current_value.endswith("****") \ - else False + WalletNetworkDefaultValues.ETHEREUM_TEST_FAILOVER.value) and current_value.endswith( + "****") else False class EditAccountOrderSettings(WalletSettingsView): 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 dc238e90..85239bf0 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 @@ -17,7 +17,6 @@ pytest.param(WalletNetworkSettings.EDIT_NETWORK_LIVE_TAB.value), pytest.param(WalletNetworkSettings.EDIT_NETWORK_TEST_TAB.value) ]) -@pytest.mark.skip(reason="https://github.com/status-im/desktop-qa-automation/issues/440") 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()