chore: fix edit profile test itself and added reference
This commit is contained in:
parent
a1e4591bc4
commit
0f7c5821bc
|
@ -23,7 +23,6 @@ class ChangesDetectedToastMessage(QObject):
|
||||||
|
|
||||||
class PermissionsChangesDetectedToastMessage(QObject):
|
class PermissionsChangesDetectedToastMessage(QObject):
|
||||||
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(communities_names.editPermissionView_settingsDirtyToastMessage_SettingsDirtyToastMessage)
|
super().__init__(communities_names.editPermissionView_settingsDirtyToastMessage_SettingsDirtyToastMessage)
|
||||||
self._update_permission_button = Button(communities_names.editPermissionView_Save_changes_StatusButton)
|
self._update_permission_button = Button(communities_names.editPermissionView_Save_changes_StatusButton)
|
||||||
|
|
|
@ -19,6 +19,7 @@ pytestmark = marks
|
||||||
@pytest.mark.parametrize('user_account, user_account_changed',
|
@pytest.mark.parametrize('user_account, user_account_changed',
|
||||||
[pytest.param(constants.user.user_account_one, constants.user.user_account_one_changed_name)])
|
[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.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):
|
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'):
|
with step('Open profile settings and check name, bio and links'):
|
||||||
profile_settings = main_screen.left_panel.open_settings().left_panel.open_profile_settings()
|
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 \
|
main_screen.left_panel.open_online_identifier().open_profile_popup_from_online_identifier().user_name \
|
||||||
== user_account_changed.name, \
|
== user_account_changed.name, \
|
||||||
f'Display name was not applied after changing'
|
f'Display name was not applied after changing'
|
||||||
|
main_screen.left_panel.click()
|
||||||
profile_settings.set_social_links(links)
|
profile_settings.set_social_links(links)
|
||||||
ChangesDetectedToastMessage().click_save_changes_button()
|
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'):
|
with step('Restart application'):
|
||||||
aut.restart()
|
aut.restart()
|
||||||
|
|
Loading…
Reference in New Issue