test for editing network fixed and disabled with new bug (#168)
This commit is contained in:
parent
2013b784db
commit
cdb8635220
|
@ -78,7 +78,7 @@ editNetworkMainRpcInput = {"container": statusDesktop_mainWindow, "objectName":
|
||||||
editNetworkFailoverRpcUrlInput = {"container": statusDesktop_mainWindow, "objectName": "editNetworkFailoverRpcUrlInput", "type": "TextEdit", "visible": True}
|
editNetworkFailoverRpcUrlInput = {"container": statusDesktop_mainWindow, "objectName": "editNetworkFailoverRpcUrlInput", "type": "TextEdit", "visible": True}
|
||||||
editNetworkExplorerInput = {"container": statusDesktop_mainWindow, "objectName": "editNetworkExplorerInput", "type": "TextEdit"}
|
editNetworkExplorerInput = {"container": statusDesktop_mainWindow, "objectName": "editNetworkExplorerInput", "type": "TextEdit"}
|
||||||
editNetworkAknowledgmentCheckbox = {"container": statusDesktop_mainWindow, "objectName": "editNetworkAknowledgmentCheckbox", "type": "StatusCheckBox", "visible": True}
|
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"}
|
editNetworkSaveButton = {"container": statusDesktop_mainWindow, "objectName": "editNetworkSaveButton", "type": "StatusButton"}
|
||||||
mainRpcUrlInputObject = {"container": settingsContentBase_ScrollView, "objectName": "mainRpcInputObject", "type": "StatusInput", "visible": True}
|
mainRpcUrlInputObject = {"container": settingsContentBase_ScrollView, "objectName": "mainRpcInputObject", "type": "StatusInput", "visible": True}
|
||||||
failoverRpcUrlInputObject = {"container": settingsContentBase_ScrollView, "objectName": "failoverRpcUrlInputObject", "type": "StatusInput", "visible": True}
|
failoverRpcUrlInputObject = {"container": settingsContentBase_ScrollView, "objectName": "failoverRpcUrlInputObject", "type": "StatusInput", "visible": True}
|
||||||
|
|
|
@ -470,11 +470,13 @@ class EditNetworkSettings(WalletSettingsView):
|
||||||
assert driver.waitFor(lambda: self._network_acknowledgment_checkbox.exists,
|
assert driver.waitFor(lambda: self._network_acknowledgment_checkbox.exists,
|
||||||
configs.timeouts.UI_LOAD_TIMEOUT_MSEC), f"Acknowldegment checkbox is not present"
|
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 not driver.waitForObjectExists(self._network_revert_to_default.real_name,
|
||||||
assert driver.waitFor(lambda: self._network_revert_to_default.exists,
|
configs.timeouts.UI_LOAD_TIMEOUT_MSEC).enabled, \
|
||||||
configs.timeouts.UI_LOAD_TIMEOUT_MSEC), f"Revert to default button is not present"
|
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')
|
@allure.step('Edit Main RPC url input field')
|
||||||
def edit_network_main_json_rpc_url_input(self, test_value):
|
def edit_network_main_json_rpc_url_input(self, test_value):
|
||||||
|
|
|
@ -16,7 +16,7 @@ from scripts.tools import image
|
||||||
pytest.param('0xea123F7beFF45E3C9fdF54B324c29DBdA14a639A', 'Status account',
|
pytest.param('0xea123F7beFF45E3C9fdF54B324c29DBdA14a639A', 'Status account',
|
||||||
'WatchOnly', '#2a4af5', 'sunglasses', 'Generated', '#216266', 'thumbsup')
|
'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,
|
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,
|
name: str, color: str, emoji: str, second_name: str, second_color: str,
|
||||||
second_emoji: str):
|
second_emoji: str):
|
||||||
|
|
|
@ -11,7 +11,7 @@ from gui.main_window import MainWindow
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703515',
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703515',
|
||||||
'Network: Network: Editing network -> Restore defaults')
|
'Network: Network: Editing network -> Restore defaults')
|
||||||
@pytest.mark.case(703515)
|
@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):
|
def test_settings_networks_edit_restore_defaults(main_screen: MainWindow):
|
||||||
networks = main_screen.left_panel.open_settings().left_panel.open_wallet_settings().open_networks()
|
networks = main_screen.left_panel.open_settings().left_panel.open_wallet_settings().open_networks()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue