chore: fixes for fails from nightly run

This commit is contained in:
Valentina Novgorodtceva 2024-02-12 13:48:10 +07:00 committed by Anastasiya
parent 299a702e33
commit 6f84fe7c08
8 changed files with 13 additions and 12 deletions

View File

@ -20,7 +20,7 @@ class ProfilePopup(BasePopup):
self._edit_profile_button = Button('ProfilePopup_editButton')
self._chat_key_text_label = TextLabel('https_status_app_StatusBaseText')
self._emoji_hash = QObject('profileDialog_userEmojiHash_EmojiHash')
self._chat_key_copy_button = Button('copy_icon_StatusIcon')
self._chat_key_copy_button = Button('copy_icon_CopyButton')
@property
@allure.step('Get profile image')

View File

@ -62,8 +62,7 @@ ProfilePopup_SendContactRequestButton = {"container": statusDesktop_mainWindow_o
profileDialog_userEmojiHash_EmojiHash = {"container": statusDesktop_mainWindow_overlay, "objectName": "ProfileDialog_userEmojiHash", "type": "EmojiHash", "visible": True}
edit_TextEdit = {"container": statusDesktop_mainWindow_overlay, "id": "edit", "type": "TextEdit", "unnamed": 1, "visible": True}
https_status_app_StatusBaseText = {"container": edit_TextEdit, "type": "StatusBaseText", "unnamed": 1, "visible": True}
copy_icon_StatusIcon = {"container": statusDesktop_mainWindow_overlay, "objectName": "copy-icon", "type": "StatusIcon", "visible": True}
copy_icon_CopyButton = {"container": statusDesktop_mainWindow_overlay, "objectName": "copy-icon", "type": "CopyButton", "visible": True}
# Welcome Status Popup
betaConsent_StatusModal = {"container": statusDesktop_mainWindow_overlay, "objectName": "desktopBetaStatusModal", "type": "StatusModal", "visible": True}

View File

@ -59,4 +59,4 @@ def test_pin_and_unpin_message_in_community(main_screen: MainWindow, community_p
with step('Verify that the message was unpinned'):
assert not message.message_is_pinned
assert message.user_name_in_pinned_message == ''
assert messages_screen.tool_bar.is_pin_message_tooltip_visible
assert not messages_screen.tool_bar.is_pin_message_tooltip_visible

View File

@ -36,7 +36,7 @@ def test_join_community_via_owner_invite(multiple_instance, user_data_one, user_
aut_two.attach()
main_window.prepare()
profile_popup = main_window.left_panel.open_online_identifier().open_profile_popup_from_online_identifier()
chat_key = profile_popup.get_chat_key_from_profile_link
chat_key = profile_popup.copy_chat_key
profile_popup.close()
main_window.hide()

View File

@ -111,9 +111,11 @@ def test_generate_new_keys(main_window, keys_screen, user_name: str, password, u
with step('Open user profile from online identifier and check the data'):
profile_popup = online_identifier.open_profile_popup_from_online_identifier()
assert profile_popup.user_name == user_name, \
f'Display name in user profile is wrong, current: {profile_popup.user_name}, expected: {user_name}'
assert profile_popup.get_chat_key_from_profile_link == chat_key, \
f'Chat key in user profile is wrong, current: {profile_popup.get_chat_key_from_profile_link}, expected: {chat_key}'
profile_popup_user_name = profile_popup.user_name
profile_popup_chat_key = profile_popup.copy_chat_key
assert profile_popup_user_name == user_name, \
f'Display name in user profile is wrong, current: {profile_popup_user_name}, expected: {user_name}'
assert profile_popup_chat_key == chat_key, \
f'Chat key in user profile is wrong, current: {profile_popup_chat_key}, expected: {chat_key}'
assert profile_popup.get_emoji_hash == emoji_hash_public_key, \
f'Public keys should match when they dont'

View File

@ -37,7 +37,7 @@ def test_messaging_settings_accepting_request(multiple_instance, user_data_one,
aut_two.attach()
main_window.prepare()
profile_popup = main_window.left_panel.open_online_identifier().open_profile_popup_from_online_identifier()
chat_key = profile_popup.get_chat_key_from_profile_link
chat_key = profile_popup.copy_chat_key
profile_popup.close()
main_window.hide()

View File

@ -36,7 +36,7 @@ def test_messaging_settings_identity_verification(multiple_instance, user_data_o
aut_two.attach()
main_window.prepare()
profile_popup = main_window.left_panel.open_online_identifier().open_profile_popup_from_online_identifier()
chat_key = profile_popup.get_chat_key_from_profile_link
chat_key = profile_popup.copy_chat_key
profile_popup.close()
main_window.hide()

View File

@ -32,7 +32,7 @@ def test_messaging_settings_rejecting_request(multiple_instance, user_data_one,
main_window.prepare()
online_identifier = main_window.left_panel.open_online_identifier()
profile_popup = online_identifier.open_profile_popup_from_online_identifier()
chat_key = profile_popup.get_chat_key_from_profile_link
chat_key = profile_popup.copy_chat_key
profile_popup.close()
main_window.hide()