chore: fix back up seed test

This commit is contained in:
Anastasiya Semenkevich 2024-02-10 12:12:23 +03:00 committed by Anastasiya
parent e8023ca198
commit f5d188bec5
2 changed files with 5 additions and 3 deletions

View File

@ -12,6 +12,8 @@ mainWindow_Settings_StatusNavigationPanelHeadline = {"container": mainWindow_Lef
mainWindow_scrollView_StatusScrollView = {"container": mainWindow_LeftTabView, "id": "scrollView", "type": "StatusScrollView", "unnamed": 1, "visible": True}
scrollView_MenuItem_StatusNavigationListItem = {"container": mainWindow_scrollView_StatusScrollView, "type": "StatusNavigationListItem", "visible": True}
scrollView_Flickable = {"container": mainWindow_scrollView_StatusScrollView, "type": "Flickable", "unnamed": 1, "visible": True}
mainWindow_ScrollView = {"container": mainWindow_LeftTabView, "type": "StatusScrollView", "unnamed": 1, "visible": True}
settingsBackUpSeedPhraseOption = {"container": mainWindow_ScrollView, "objectName": "18-MainMenuItem", "type": "StatusNavigationListItem", "visible": True}
# Communities View
mainWindow_CommunitiesView = {"container": statusDesktop_mainWindow, "type": "CommunitiesView", "unnamed": 1, "visible": True}

View File

@ -21,6 +21,7 @@ class LeftPanel(QObject):
super().__init__('mainWindow_LeftTabView')
self._settings_section_template = QObject('scrollView_MenuItem_StatusNavigationListItem')
self._scroll = Scroll('scrollView_Flickable')
self._settings_section_back_up_seed_option = QObject('settingsBackUpSeedPhraseOption')
def _open_settings(self, object_name: str):
self._settings_section_template.real_name['objectName'] = object_name
@ -30,8 +31,7 @@ class LeftPanel(QObject):
@allure.step('Check back up seed option menu item presence')
def check_back_up_seed_option_present(self):
self._settings_section_template.real_name['objectName'] = '17-MainMenuItem'
return self._settings_section_template.is_visible
return self._settings_section_back_up_seed_option.exists
@allure.step('Open messaging settings')
def open_messaging_settings(self) -> 'MessagingSettingsView':
@ -68,7 +68,7 @@ class LeftPanel(QObject):
@allure.step('Choose back up seed phrase in settings')
def open_back_up_seed_phrase(self) -> BackUpYourSeedPhrasePopUp:
self._open_settings('17-MainMenuItem')
self._open_settings('18-MainMenuItem')
return BackUpYourSeedPhrasePopUp()
@allure.step('Open syncing settings')