From aaa7ff1dd4435a76bd503a450fb2b96fe7699d00 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Tue, 26 Mar 2024 09:39:37 +0300 Subject: [PATCH] chore: remove unnecessary step according to new designs --- test/e2e/gui/components/community/authenticate_popup.py | 4 ++-- test/e2e/gui/objects_map/names.py | 8 ++++---- .../test_communities_pin_and_unpin_messages.py | 1 - .../e2e/tests/online_identifier/test_online_identifier.py | 1 - 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/test/e2e/gui/components/community/authenticate_popup.py b/test/e2e/gui/components/community/authenticate_popup.py index db70aef726..9d30726a44 100644 --- a/test/e2e/gui/components/community/authenticate_popup.py +++ b/test/e2e/gui/components/community/authenticate_popup.py @@ -13,7 +13,7 @@ class AuthenticatePopup(BasePopup): def __init__(self): super().__init__() self._content = QObject(names.keycardSharedPopupContent_KeycardPopupContent) - self._passwort_text_edit = TextEdit(names.password_PlaceholderText) + self._password_text_edit = TextEdit(names.password_PlaceholderText) self._authenticate_button = Button(names.authenticate_StatusButton) self._close_button = Button(names.headerCloseButton_StatusFlatRoundButton) @@ -24,7 +24,7 @@ class AuthenticatePopup(BasePopup): @allure.step('Authenticate actions with password {0}') def authenticate(self, password: str): - self._passwort_text_edit.type_text(password) + self._password_text_edit.type_text(password) self._authenticate_button.click() self._authenticate_button.wait_until_hidden() diff --git a/test/e2e/gui/objects_map/names.py b/test/e2e/gui/objects_map/names.py index 0c26f042ad..24cb22fdd4 100644 --- a/test/e2e/gui/objects_map/names.py +++ b/test/e2e/gui/objects_map/names.py @@ -154,10 +154,10 @@ o_ColumnLayout = {"container": statusDesktop_mainWindow_overlay, "type": "Column headerTitle_StatusBaseText = {"container": statusDesktop_mainWindow_overlay, "objectName": "headerTitle", "type": "StatusBaseText", "visible": True} image_StatusImage = {"container": statusDesktop_mainWindow_overlay, "id": "image", "type": "StatusImage", "unnamed": 1, "visible": True} intro_StatusBaseText = {"container": o_ColumnLayout, "type": "StatusBaseText", "unnamed": 1, "visible": True} -select_addresses_to_share_StatusFlatButton = {"checkable": False, "container": statusDesktop_mainWindow_overlay, "type": "StatusFlatButton", "unnamed": 1, "visible": True} -join_StatusButton = {"checkable": False, "container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "unnamed": 1, "visible": True} -welcome_authenticate_StatusButton = {"checkable": False, "container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "text": "Authenticate", "unnamed": 1, "visible": True} -share_your_addresses_to_join_StatusButton = {"checkable": False, "container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "unnamed": 1, "visible": True} +select_addresses_to_share_StatusFlatButton = {"container": statusDesktop_mainWindow_overlay, "type": "StatusFlatButton", "unnamed": 1, "visible": True} +join_StatusButton = { "container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "unnamed": 1, "visible": True} +welcome_authenticate_StatusButton = {"container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "unnamed": 1, "visible": True} +share_your_addresses_to_join_StatusButton = {"container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "unnamed": 1, "visible": True} """ Settings """ diff --git a/test/e2e/tests/communities/test_communities_pin_and_unpin_messages.py b/test/e2e/tests/communities/test_communities_pin_and_unpin_messages.py index 6ea4df82bc..2060a7db61 100644 --- a/test/e2e/tests/communities/test_communities_pin_and_unpin_messages.py +++ b/test/e2e/tests/communities/test_communities_pin_and_unpin_messages.py @@ -88,7 +88,6 @@ def test_join_community_and_pin_unpin_message(multiple_instance, user_data_one, assert community_params['name'] in welcome_popup.title assert community_params['intro'] == welcome_popup.intro welcome_popup.join().authenticate(user_two.password) - welcome_popup.share_address() assert driver.waitFor(lambda: not community_screen.left_panel.is_join_community_visible, configs.timeouts.UI_LOAD_TIMEOUT_MSEC), 'Join community button not hidden' diff --git a/test/e2e/tests/online_identifier/test_online_identifier.py b/test/e2e/tests/online_identifier/test_online_identifier.py index 83d30ae962..11999da2ce 100644 --- a/test/e2e/tests/online_identifier/test_online_identifier.py +++ b/test/e2e/tests/online_identifier/test_online_identifier.py @@ -104,7 +104,6 @@ def test_switch_state_to_offline_online_automatic(multiple_instance, user_data_o assert community_params['name'] in welcome_popup.title assert community_params['intro'] == welcome_popup.intro welcome_popup.join().authenticate(user_two.password) - welcome_popup.share_address() assert driver.waitFor(lambda: not community_screen.left_panel.is_join_community_visible, configs.timeouts.UI_LOAD_TIMEOUT_MSEC), 'Join community button not hidden' main_screen.hide()