chore: fix back up seed test
This commit is contained in:
parent
e8023ca198
commit
f5d188bec5
|
@ -12,6 +12,8 @@ mainWindow_Settings_StatusNavigationPanelHeadline = {"container": mainWindow_Lef
|
||||||
mainWindow_scrollView_StatusScrollView = {"container": mainWindow_LeftTabView, "id": "scrollView", "type": "StatusScrollView", "unnamed": 1, "visible": True}
|
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_MenuItem_StatusNavigationListItem = {"container": mainWindow_scrollView_StatusScrollView, "type": "StatusNavigationListItem", "visible": True}
|
||||||
scrollView_Flickable = {"container": mainWindow_scrollView_StatusScrollView, "type": "Flickable", "unnamed": 1, "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
|
# Communities View
|
||||||
mainWindow_CommunitiesView = {"container": statusDesktop_mainWindow, "type": "CommunitiesView", "unnamed": 1, "visible": True}
|
mainWindow_CommunitiesView = {"container": statusDesktop_mainWindow, "type": "CommunitiesView", "unnamed": 1, "visible": True}
|
||||||
|
|
|
@ -21,6 +21,7 @@ class LeftPanel(QObject):
|
||||||
super().__init__('mainWindow_LeftTabView')
|
super().__init__('mainWindow_LeftTabView')
|
||||||
self._settings_section_template = QObject('scrollView_MenuItem_StatusNavigationListItem')
|
self._settings_section_template = QObject('scrollView_MenuItem_StatusNavigationListItem')
|
||||||
self._scroll = Scroll('scrollView_Flickable')
|
self._scroll = Scroll('scrollView_Flickable')
|
||||||
|
self._settings_section_back_up_seed_option = QObject('settingsBackUpSeedPhraseOption')
|
||||||
|
|
||||||
def _open_settings(self, object_name: str):
|
def _open_settings(self, object_name: str):
|
||||||
self._settings_section_template.real_name['objectName'] = object_name
|
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')
|
@allure.step('Check back up seed option menu item presence')
|
||||||
def check_back_up_seed_option_present(self):
|
def check_back_up_seed_option_present(self):
|
||||||
self._settings_section_template.real_name['objectName'] = '17-MainMenuItem'
|
return self._settings_section_back_up_seed_option.exists
|
||||||
return self._settings_section_template.is_visible
|
|
||||||
|
|
||||||
@allure.step('Open messaging settings')
|
@allure.step('Open messaging settings')
|
||||||
def open_messaging_settings(self) -> 'MessagingSettingsView':
|
def open_messaging_settings(self) -> 'MessagingSettingsView':
|
||||||
|
@ -68,7 +68,7 @@ class LeftPanel(QObject):
|
||||||
|
|
||||||
@allure.step('Choose back up seed phrase in settings')
|
@allure.step('Choose back up seed phrase in settings')
|
||||||
def open_back_up_seed_phrase(self) -> BackUpYourSeedPhrasePopUp:
|
def open_back_up_seed_phrase(self) -> BackUpYourSeedPhrasePopUp:
|
||||||
self._open_settings('17-MainMenuItem')
|
self._open_settings('18-MainMenuItem')
|
||||||
return BackUpYourSeedPhrasePopUp()
|
return BackUpYourSeedPhrasePopUp()
|
||||||
|
|
||||||
@allure.step('Open syncing settings')
|
@allure.step('Open syncing settings')
|
||||||
|
|
Loading…
Reference in New Issue