test for editing network fixed and disabled with new bug (#168)

This commit is contained in:
Anastasiya Semenkevich 2023-10-12 09:25:49 +03:00 committed by GitHub
parent 6424be9524
commit 877a1bda38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 7 deletions

View File

@ -78,7 +78,7 @@ editNetworkMainRpcInput = {"container": statusDesktop_mainWindow, "objectName":
editNetworkFailoverRpcUrlInput = {"container": statusDesktop_mainWindow, "objectName": "editNetworkFailoverRpcUrlInput", "type": "TextEdit", "visible": True}
editNetworkExplorerInput = {"container": statusDesktop_mainWindow, "objectName": "editNetworkExplorerInput", "type": "TextEdit"}
editNetworkAknowledgmentCheckbox = {"container": statusDesktop_mainWindow, "objectName": "editNetworkAknowledgmentCheckbox", "type": "StatusCheckBox", "visible": True}
editNetworkRevertButton = {"container": statusDesktop_mainWindow, "objectName": "editNetworkRevertButton", "type": "StatusButton", "visible": True, "enabled": True}
editNetworkRevertButton = {"container": statusDesktop_mainWindow, "objectName": "editNetworkRevertButton", "type": "StatusButton"}
editNetworkSaveButton = {"container": statusDesktop_mainWindow, "objectName": "editNetworkSaveButton", "type": "StatusButton"}
mainRpcUrlInputObject = {"container": settingsContentBase_ScrollView, "objectName": "mainRpcInputObject", "type": "StatusInput", "visible": True}
failoverRpcUrlInputObject = {"container": settingsContentBase_ScrollView, "objectName": "failoverRpcUrlInputObject", "type": "StatusInput", "visible": True}

View File

@ -470,11 +470,13 @@ class EditNetworkSettings(WalletSettingsView):
assert driver.waitFor(lambda: self._network_acknowledgment_checkbox.exists,
configs.timeouts.UI_LOAD_TIMEOUT_MSEC), f"Acknowldegment checkbox is not present"
self._network_edit_scroll.vertical_down_to(self._network_revert_to_default)
assert driver.waitFor(lambda: self._network_revert_to_default.exists,
configs.timeouts.UI_LOAD_TIMEOUT_MSEC), f"Revert to default button is not present"
assert not driver.waitForObjectExists(self._network_revert_to_default.real_name,
configs.timeouts.UI_LOAD_TIMEOUT_MSEC).enabled, \
f"Revert to default button is enabled"
assert self._network_save_changes.exists, f"Save changes button is not present"
assert not driver.waitForObjectExists(self._network_save_changes.real_name,
configs.timeouts.UI_LOAD_TIMEOUT_MSEC).enabled, \
f"Save changes button is enabled"
@allure.step('Edit Main RPC url input field')
def edit_network_main_json_rpc_url_input(self, test_value):

View File

@ -16,7 +16,7 @@ from scripts.tools import image
pytest.param('0xea123F7beFF45E3C9fdF54B324c29DBdA14a639A', 'Status account',
'WatchOnly', '#2a4af5', 'sunglasses', 'Generated', '#216266', 'thumbsup')
])
@pytest.mark.skip(reaason="https://github.com/status-im/desktop-qa-automation/issues/165")
@pytest.mark.skip(reason="https://github.com/status-im/desktop-qa-automation/issues/165")
def test_change_account_order_by_drag_and_drop(main_screen: MainWindow, user_account, address: str, default_name,
name: str, color: str, emoji: str, second_name: str, second_color: str,
second_emoji: str):

View File

@ -11,7 +11,7 @@ from gui.main_window import MainWindow
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703515',
'Network: Network: Editing network -> Restore defaults')
@pytest.mark.case(703515)
@pytest.mark.skip(reaason="https://github.com/status-im/desktop-qa-automation/issues/165")
@pytest.mark.skip(reason="https://github.com/status-im/status-desktop/issues/12416")
def test_settings_networks_edit_restore_defaults(main_screen: MainWindow):
networks = main_screen.left_panel.open_settings().left_panel.open_wallet_settings().open_networks()