From a962014c587052079f6e760cd432f7c2b967d9bf Mon Sep 17 00:00:00 2001 From: Valentina Novgorodtceva Date: Wed, 14 Feb 2024 17:04:51 +0700 Subject: [PATCH] chore: removed extra locator for save changes button and changed to the actual one in a couple of tests --- test/e2e/gui/components/settings/changes_detected_popup.py | 2 +- test/e2e/gui/objects_map/names.py | 1 - test/e2e/gui/screens/settings_profile.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/e2e/gui/components/settings/changes_detected_popup.py b/test/e2e/gui/components/settings/changes_detected_popup.py index 2c7541aa56..2aed610a13 100644 --- a/test/e2e/gui/components/settings/changes_detected_popup.py +++ b/test/e2e/gui/components/settings/changes_detected_popup.py @@ -10,7 +10,7 @@ class ChangesDetectedToastMessage(QObject): def __init__(self): super(ChangesDetectedToastMessage, self).__init__( names.mainWindow_settingsDirtyToastMessage_SettingsDirtyToastMessage) - self._save_button = Button(names.settingsSave_StatusButton) + self._save_button = Button(names.mainWindow_Save_changes_StatusButton) @allure.step('Save changes') def save(self): diff --git a/test/e2e/gui/objects_map/names.py b/test/e2e/gui/objects_map/names.py index 28eb171743..5045465125 100644 --- a/test/e2e/gui/objects_map/names.py +++ b/test/e2e/gui/objects_map/names.py @@ -352,7 +352,6 @@ linksView = {"container": statusDesktop_mainWindow, "id": "linksView", "type": " # Changes detected popup mainWindow_settingsDirtyToastMessage_SettingsDirtyToastMessage = {"container": ":statusDesktop_mainWindow", "id": "settingsDirtyToastMessage", "type": "SettingsDirtyToastMessage", "unnamed": 1, "visible": True} -settingsSave_StatusButton = {"container": statusDesktop_mainWindow, "objectName": "settingsDirtyToastMessageSaveButton", "type": "StatusButton", "visible": True} # Back up seed phrase banner mainWindow_secureYourSeedPhraseBanner_ModuleWarning = {"container": statusDesktop_mainWindow, "objectName": "secureYourSeedPhraseBanner", "type": "ModuleWarning", "visible": True} diff --git a/test/e2e/gui/screens/settings_profile.py b/test/e2e/gui/screens/settings_profile.py index 010b908c98..eb2dd32081 100644 --- a/test/e2e/gui/screens/settings_profile.py +++ b/test/e2e/gui/screens/settings_profile.py @@ -19,7 +19,7 @@ class ProfileSettingsView(QObject): super().__init__(names.mainWindow_MyProfileView) self._scroll_view = Scroll(names.settingsContentBaseScrollView_Flickable) self._display_name_text_field = TextEdit(names.displayName_TextEdit) - self._save_button = Button(names.settingsSave_StatusButton) + self._save_button = Button(names.mainWindow_Save_changes_StatusButton) self._bio_text_field = TextEdit(names.bio_TextEdit) self._add_more_links_label = TextLabel(names.addMoreSocialLinks) self._links_list = QObject(names.linksView)