Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit 944f832

Browse files
committed
chore: fix edit profile test itself and added reference
1 parent 3d6a1ee commit 944f832

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

gui/components/changes_detected_popup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def is_save_changes_button_visible(self):
2323

2424
class PermissionsChangesDetectedToastMessage(QObject):
2525

26-
2726
def __init__(self):
2827
super().__init__(communities_names.editPermissionView_settingsDirtyToastMessage_SettingsDirtyToastMessage)
2928
self._update_permission_button = Button(communities_names.editPermissionView_Save_changes_StatusButton)

tests/settings/settings_profile/test_settings_profile_edit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
@pytest.mark.parametrize('user_account, user_account_changed',
2020
[pytest.param(constants.user.user_account_one, constants.user.user_account_one_changed_name)])
2121
@pytest.mark.parametrize('bio, links', [pytest.param('This is my bio', constants.social_links)])
22+
@pytest.mark.skip(reason='https://github.com/status-im/status-desktop/pull/13900')
2223
def test_set_name_bio_social_links(main_screen: MainWindow, aut: AUT, user_account, user_account_changed, bio, links):
2324
with step('Open profile settings and check name, bio and links'):
2425
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
3637
main_screen.left_panel.open_online_identifier().open_profile_popup_from_online_identifier().user_name \
3738
== user_account_changed.name, \
3839
f'Display name was not applied after changing'
40+
main_screen.left_panel.click()
3941
profile_settings.set_social_links(links)
4042
ChangesDetectedToastMessage().click_save_changes_button()
43+
assert ChangesDetectedToastMessage().is_save_changes_button_visible() is False, \
44+
f'Save button is not hidden when clicked'
45+
assert len(profile_settings.get_social_links) > 0, f'No social links were added'
4146

4247
with step('Restart application'):
4348
aut.restart()

0 commit comments

Comments
 (0)