From 229471cee3e6c006880457c526617414c67e454f 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 --- gui/components/community/authenticate_popup.py | 4 ++-- gui/objects_map/names.py | 8 ++++---- .../test_communities_pin_and_unpin_messages.py | 1 - tests/online_identifier/test_online_identifier.py | 1 - 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/gui/components/community/authenticate_popup.py b/gui/components/community/authenticate_popup.py index db70aef..9d30726 100644 --- a/gui/components/community/authenticate_popup.py +++ b/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/gui/objects_map/names.py b/gui/objects_map/names.py index 0c26f04..24cb22f 100644 --- a/gui/objects_map/names.py +++ b/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/tests/communities/test_communities_pin_and_unpin_messages.py b/tests/communities/test_communities_pin_and_unpin_messages.py index 6ea4df8..2060a7d 100644 --- a/tests/communities/test_communities_pin_and_unpin_messages.py +++ b/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/tests/online_identifier/test_online_identifier.py b/tests/online_identifier/test_online_identifier.py index 83d30ae..11999da 100644 --- a/tests/online_identifier/test_online_identifier.py +++ b/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()