fix(@settings_profile): fixed change password and edit tests (#148)

This commit is contained in:
Anastasiya Semenkevich 2023-10-06 19:02:26 +06:00 committed by GitHub
parent c94202229b
commit 95a9a83843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 9 deletions

View File

@ -15,7 +15,8 @@ class SocialLinksPopup(BasePopup):
super(SocialLinksPopup, self).__init__()
self._add_social_link_list_item = QObject('socialLink_StatusListItem')
self._social_link_text_field = TextEdit('edit_TextEdit')
self._add_button = Button('o_StatusBackButton')
self._back_button = Button('social_links_back_StatusBackButton')
self._add_button = Button('social_links_add_StatusBackButton')
@allure.step('Get social link')
def _get_list_item(self, title: str) -> QObject:

View File

@ -277,7 +277,8 @@ change_password_success_menu_sign_out_quit_button = {"container": statusDesktop_
# Social Links Popup
socialLink_StatusListItem = {"container": statusDesktop_mainWindow_overlay, "type": "StatusListItem", "title": "", "visible": True}
placeholder_StatusBaseText = {"container": statusDesktop_mainWindow_overlay, "id": "placeholder", "type": "StatusBaseText", "unnamed": 1, "visible": True}
o_StatusBackButton = {"container": statusDesktop_mainWindow_overlay, "type": "StatusBackButton", "unnamed": 1, "visible": True}
social_links_back_StatusBackButton = {"container": statusDesktop_mainWindow_overlay, "type": "StatusBackButton", "unnamed": 1, "visible": True}
social_links_add_StatusBackButton = {"container": statusDesktop_mainWindow_overlay, "type": "StatusButton", "unnamed": 1, "visible": True}
linksView = {"container": statusDesktop_mainWindow, "id": "linksView", "type": "StatusListView", "unnamed": 1, "visible": True}
edit_TextEdit = {"container": statusDesktop_mainWindow_overlay, "type": "TextEdit", "unnamed": 1, "visible": True}

View File

@ -10,18 +10,18 @@ from gui.main_window import MainWindow
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703005',
'Change the password and login with new password')
@pytest.mark.case(703005)
@pytest.mark.parametrize('user_account, user_account_new',
[pytest.param(constants.user.user_account_one, constants.user.user_account_one_changed_name)])
def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_account, user_account_new):
@pytest.mark.parametrize('user_account, user_account_changed_password',
[pytest.param(constants.user.user_account_one, constants.user.user_account_one_changed_password)])
def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_account, user_account_changed_password):
with step('Open profile settings and change password'):
main_screen.left_panel.open_settings().left_panel.open_profile_settings().open_change_password_popup().change_password(
user_account.password, user_account_new.password)
user_account.password, user_account_changed_password.password)
with step('Restart application'):
aut.restart()
main_screen.authorize_user(user_account_new)
main_screen.authorize_user(user_account_changed_password)
with step('Verify that the user logged in correctly'):
user_canvas = main_screen.left_panel.open_user_canvas()
profile_popup = user_canvas.open_profile_popup()
assert profile_popup.user_name == user_account_new.name
assert profile_popup.user_name == user_account.name

View File

@ -14,7 +14,6 @@ from gui.main_window import MainWindow
@pytest.mark.parametrize('user_account, user_account_changed',
[pytest.param(constants.user.user_account_one, constants.user.user_account_one_changed_name)])
@pytest.mark.parametrize('bio, links', [pytest.param('This is my bio', constants.social_links)])
@pytest.mark.skip(reason = "https://github.com/status-im/desktop-qa-automation/issues/146")
def test_set_name_bio_social_links(main_screen: MainWindow, aut: AUT, user_account, user_account_changed, bio, links):
with step('Open profile settings and check name, bio and links'):
profile_settings = main_screen.left_panel.open_settings().left_panel.open_profile_settings()