mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-20 19:39:22 +00:00
chore(@e2e): fix tests to reflect new settings list
This commit is contained in:
parent
5238074ed3
commit
542cd01568
@ -14,10 +14,15 @@ LeftTabProfileMenu = {"container": LeftTabView_ScrollView, "objectName": "leftTa
|
|||||||
|
|
||||||
mainWindow_Settings_StatusNavigationPanelHeadline = {"container": mainWindow_LeftTabView, "type": "StatusNavigationPanelHeadline", "unnamed": 1, "visible": True}
|
mainWindow_Settings_StatusNavigationPanelHeadline = {"container": mainWindow_LeftTabView, "type": "StatusNavigationPanelHeadline", "unnamed": 1, "visible": True}
|
||||||
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}
|
||||||
|
mainWindow_settingsList_SettingsList = {"container": statusDesktop_mainWindow, "id": "settingsList", "type": "SettingsList", "unnamed": 1, "visible": True}
|
||||||
|
mainWindow_settingsList_SettingsListItem = {"container": mainWindow_settingsList_SettingsList, "type": "StatusNavigationListItem", "visible": True}
|
||||||
|
mainWindow_settingsList_VerticalScroll = {"container": mainWindow_settingsList_SettingsList, "id": "verticalScrollBar", "type": "StatusScrollBar", "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}
|
||||||
settingsBackUpSeedPhraseOption = {"container": mainWindow_scrollView_StatusScrollView, "objectName": "18-MainMenuItem", "type": "StatusNavigationListItem", "visible": True}
|
settingsBackUpSeedPhraseOption = {"container": mainWindow_scrollView_StatusScrollView, "objectName": "18-MainMenuItem", "type": "StatusNavigationListItem", "visible": True}
|
||||||
settingsWalletOption = {"container": LeftTabView_ScrollView, "objectName": "5-AppMenuItem", "type": "StatusNavigationListItem", "visible": True}
|
settingsWalletOption = {"container": mainWindow_settingsList_SettingsList, "objectName": "5-MenuItem", "type": "StatusNavigationListItem", "visible": True}
|
||||||
settingsSignOutQuitOption = {"container": LeftTabProfileMenu, "objectName": "17-ExtraMenuItem", "type": "StatusNavigationListItem", "visible": True}
|
settingsSignOutQuitOption = {"container": LeftTabProfileMenu, "objectName": "17-ExtraMenuItem", "type": "StatusNavigationListItem", "visible": True}
|
||||||
|
|
||||||
# Communities View
|
# Communities View
|
||||||
|
@ -23,8 +23,8 @@ class LeftPanel(QObject):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(settings_names.mainWindow_LeftTabView)
|
super().__init__(settings_names.mainWindow_LeftTabView)
|
||||||
self._settings_section_template = QObject(settings_names.scrollView_MenuItem_StatusNavigationListItem)
|
self._settings_section_template = QObject(settings_names.mainWindow_settingsList_SettingsListItem)
|
||||||
self._scroll = Scroll(settings_names.mainWindow_scrollView_StatusScrollView)
|
self._scroll = Scroll(settings_names.mainWindow_settingsList_VerticalScroll)
|
||||||
self.settings_section_back_up_seed_option = QObject(settings_names.settingsBackUpSeedPhraseOption)
|
self.settings_section_back_up_seed_option = QObject(settings_names.settingsBackUpSeedPhraseOption)
|
||||||
self.settings_section_wallet_option = QObject(settings_names.settingsWalletOption)
|
self.settings_section_wallet_option = QObject(settings_names.settingsWalletOption)
|
||||||
self.settings_section_sign_out_quit_option = QObject(settings_names.settingsSignOutQuitOption)
|
self.settings_section_sign_out_quit_option = QObject(settings_names.settingsSignOutQuitOption)
|
||||||
@ -40,68 +40,68 @@ class LeftPanel(QObject):
|
|||||||
self._scroll.vertical_scroll_down(self._settings_section_template)
|
self._scroll.vertical_scroll_down(self._settings_section_template)
|
||||||
self._settings_section_template.click()
|
self._settings_section_template.click()
|
||||||
|
|
||||||
|
@allure.step('Choose back up seed phrase in settings')
|
||||||
|
@handle_settings_opening(BackUpYourSeedPhrasePopUp, '18-MenuItem')
|
||||||
|
def open_back_up_seed_phrase(self, click_attempts: int = 2) -> 'BackUpYourSeedPhrasePopUp':
|
||||||
|
assert BackUpYourSeedPhrasePopUp().exists, 'Back up your seed phrase modal was not opened'
|
||||||
|
return BackUpYourSeedPhrasePopUp()
|
||||||
|
|
||||||
|
@allure.step('Open wallet settings')
|
||||||
|
@handle_settings_opening(WalletSettingsView, '5-MenuItem')
|
||||||
|
def open_wallet_settings(self, click_attempts: int = 2) -> 'WalletSettingsView':
|
||||||
|
assert WalletSettingsView().exists, 'Wallet view was not opened'
|
||||||
|
return WalletSettingsView()
|
||||||
|
|
||||||
@allure.step('Open messaging settings')
|
@allure.step('Open messaging settings')
|
||||||
@handle_settings_opening(MessagingSettingsView, '4-AppMenuItem')
|
@handle_settings_opening(MessagingSettingsView, '4-MenuItem')
|
||||||
def open_messaging_settings(self, click_attempts: int = 2) -> 'MessagingSettingsView':
|
def open_messaging_settings(self, click_attempts: int = 2) -> 'MessagingSettingsView':
|
||||||
assert MessagingSettingsView().wait_until_appears(), 'Messaging settings view was not opened'
|
assert MessagingSettingsView().wait_until_appears(), 'Messaging settings view was not opened'
|
||||||
return MessagingSettingsView()
|
return MessagingSettingsView()
|
||||||
|
|
||||||
@allure.step('Open communities settings')
|
@allure.step('Open communities settings')
|
||||||
@handle_settings_opening(CommunitiesSettingsView, '12-AppMenuItem')
|
@handle_settings_opening(CommunitiesSettingsView, '12-MenuItem')
|
||||||
def open_communities_settings(self, attempts: int = 2) -> 'CommunitiesSettingsView':
|
def open_communities_settings(self, attempts: int = 2) -> 'CommunitiesSettingsView':
|
||||||
assert CommunitiesSettingsView().exists, 'Community settings view was not opened'
|
assert CommunitiesSettingsView().exists, 'Community settings view was not opened'
|
||||||
return CommunitiesSettingsView()
|
return CommunitiesSettingsView()
|
||||||
|
|
||||||
@allure.step('Open wallet settings')
|
|
||||||
@handle_settings_opening(WalletSettingsView, '5-AppMenuItem')
|
|
||||||
def open_wallet_settings(self, click_attempts: int = 2) -> 'WalletSettingsView':
|
|
||||||
assert WalletSettingsView().wait_until_appears(), 'Wallet settings view was not opened'
|
|
||||||
return WalletSettingsView()
|
|
||||||
|
|
||||||
@allure.step('Open profile settings')
|
@allure.step('Open profile settings')
|
||||||
@handle_settings_opening(ProfileSettingsView, '0-MainMenuItem')
|
@handle_settings_opening(ProfileSettingsView, '0-MenuItem')
|
||||||
def open_profile_settings(self, click_attempts: int = 2) -> 'ProfileSettingsView':
|
def open_profile_settings(self, click_attempts: int = 2) -> 'ProfileSettingsView':
|
||||||
assert ProfileSettingsView().exists, 'Profile settings view was not opened'
|
assert ProfileSettingsView().exists, 'Profile settings view was not opened'
|
||||||
return ProfileSettingsView()
|
return ProfileSettingsView()
|
||||||
|
|
||||||
@allure.step('Open password settings')
|
@allure.step('Open password settings')
|
||||||
@handle_settings_opening(ChangePasswordView, '1-MainMenuItem')
|
@handle_settings_opening(ChangePasswordView, '1-MenuItem')
|
||||||
def open_password_settings(self, click_attempts: int = 2) -> 'ChangePasswordView':
|
def open_password_settings(self, click_attempts: int = 2) -> 'ChangePasswordView':
|
||||||
assert ChangePasswordView().exists, 'Password settings view was not opened'
|
assert ChangePasswordView().exists, 'Password settings view was not opened'
|
||||||
return ChangePasswordView()
|
return ChangePasswordView()
|
||||||
|
|
||||||
@allure.step('Choose back up seed phrase in settings')
|
|
||||||
@handle_settings_opening(BackUpYourSeedPhrasePopUp, '18-MainMenuItem')
|
|
||||||
def open_back_up_seed_phrase(self, click_attempts: int = 2) -> 'BackUpYourSeedPhrasePopUp':
|
|
||||||
assert BackUpYourSeedPhrasePopUp().exists, 'Back up your seed phrase modal was not opened'
|
|
||||||
return BackUpYourSeedPhrasePopUp()
|
|
||||||
|
|
||||||
@allure.step('Open syncing settings')
|
@allure.step('Open syncing settings')
|
||||||
@handle_settings_opening(SyncingSettingsView, '9-MainMenuItem')
|
@handle_settings_opening(SyncingSettingsView, '9-MenuItem')
|
||||||
def open_syncing_settings(self, click_attempts: int = 2) -> 'SyncingSettingsView':
|
def open_syncing_settings(self, click_attempts: int = 2) -> 'SyncingSettingsView':
|
||||||
assert SyncingSettingsView().exists, 'Syncing settings view was not opened'
|
assert SyncingSettingsView().exists, 'Syncing settings view was not opened'
|
||||||
return SyncingSettingsView()
|
return SyncingSettingsView()
|
||||||
|
|
||||||
@allure.step('Choose sign out and quit in settings')
|
@allure.step('Choose sign out and quit in settings')
|
||||||
@handle_settings_opening(SignOutPopup, '17-ExtraMenuItem')
|
@handle_settings_opening(SignOutPopup, '17-MenuItem')
|
||||||
def open_sign_out_and_quit(self, click_attempts: int = 2) -> 'SignOutPopup':
|
def open_sign_out_and_quit(self, click_attempts: int = 2) -> 'SignOutPopup':
|
||||||
assert SignOutPopup().wait_until_appears(), 'Sign out modal was not opened'
|
assert SignOutPopup().wait_until_appears(), 'Sign out modal was not opened'
|
||||||
return SignOutPopup()
|
return SignOutPopup()
|
||||||
|
|
||||||
@allure.step('Open keycard settings')
|
@allure.step('Open keycard settings')
|
||||||
@handle_settings_opening(KeycardSettingsView, '13-MainMenuItem')
|
@handle_settings_opening(KeycardSettingsView, '13-MenuItem')
|
||||||
def open_keycard_settings(self, click_attempts: int = 2) -> 'KeycardSettingsView':
|
def open_keycard_settings(self, click_attempts: int = 2) -> 'KeycardSettingsView':
|
||||||
assert KeycardSettingsView().wait_until_appears(), f'Keycard settings view was not opened'
|
assert KeycardSettingsView().wait_until_appears(), f'Keycard settings view was not opened'
|
||||||
return KeycardSettingsView()
|
return KeycardSettingsView()
|
||||||
|
|
||||||
@allure.step('Open ENS usernames settings')
|
@allure.step('Open ENS usernames settings')
|
||||||
@handle_settings_opening(ENSSettingsView, '3-MainMenuItem')
|
@handle_settings_opening(ENSSettingsView, '3-MenuItem')
|
||||||
def open_ens_usernames_settings(self, click_attempts: int = 2) -> 'ENSSettingsView':
|
def open_ens_usernames_settings(self, click_attempts: int = 2) -> 'ENSSettingsView':
|
||||||
assert ENSSettingsView().wait_until_appears(), 'ENS settings view was not opened'
|
assert ENSSettingsView().wait_until_appears(), 'ENS settings view was not opened'
|
||||||
return ENSSettingsView()
|
return ENSSettingsView()
|
||||||
|
|
||||||
@allure.step('Open advanced settings')
|
@allure.step('Open advanced settings')
|
||||||
@handle_settings_opening(AdvancedSettingsView, '10-SettingsMenuItem')
|
@handle_settings_opening(AdvancedSettingsView, '10-MenuItem')
|
||||||
def open_advanced_settings(self, click_attempts: int = 2) -> 'AdvancedSettingsView':
|
def open_advanced_settings(self, click_attempts: int = 2) -> 'AdvancedSettingsView':
|
||||||
assert AdvancedSettingsView().wait_until_appears(), 'Advanced settings view was not opened'
|
assert AdvancedSettingsView().wait_until_appears(), 'Advanced settings view was not opened'
|
||||||
return AdvancedSettingsView()
|
return AdvancedSettingsView()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user