chore: fix edit profile test itself and added reference

This commit is contained in:
Anastasiya Semenkevich 2024-03-12 16:40:50 +03:00 committed by Anastasiya
parent a1e4591bc4
commit 0f7c5821bc
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,6 @@ class ChangesDetectedToastMessage(QObject):
class PermissionsChangesDetectedToastMessage(QObject):
def __init__(self):
super().__init__(communities_names.editPermissionView_settingsDirtyToastMessage_SettingsDirtyToastMessage)
self._update_permission_button = Button(communities_names.editPermissionView_Save_changes_StatusButton)

View File

@ -19,6 +19,7 @@ pytestmark = marks
@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/status-desktop/pull/13900')
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()
@ -36,8 +37,12 @@ def test_set_name_bio_social_links(main_screen: MainWindow, aut: AUT, user_accou
main_screen.left_panel.open_online_identifier().open_profile_popup_from_online_identifier().user_name \
== user_account_changed.name, \
f'Display name was not applied after changing'
main_screen.left_panel.click()
profile_settings.set_social_links(links)
ChangesDetectedToastMessage().click_save_changes_button()
assert ChangesDetectedToastMessage().is_save_changes_button_visible() is False, \
f'Save button is not hidden when clicked'
assert len(profile_settings.get_social_links) > 0, f'No social links were added'
with step('Restart application'):
aut.restart()