chore: rename method in other places

This commit is contained in:
Anastasiya Semenkevich 2024-03-28 11:44:16 +03:00 committed by Anastasiya
parent 9f73f5f393
commit 2a7d76bc78
4 changed files with 5 additions and 5 deletions

View File

@ -219,7 +219,7 @@ class ChatView(QObject):
message = _message
break
if time.monotonic() - started_at > configs.timeouts.MESSAGING_TIMEOUT_SEC:
raise LookupError(f'Invitation not found')
raise LookupError(f'Community invitation was not found')
return message.open_community_invitation()

View File

@ -67,7 +67,7 @@ def test_1x1_chat(multiple_instances, user_data_one, user_data_two):
with step(f'User {user_one.name} send another message to {user_two.name}, edit it and verify it was changed'):
aut_one.attach()
main_window.prepare()
chat = main_window.left_panel.open_messages_screen().left_panel.open_chat(user_two.name)
chat = main_window.left_panel.open_messages_screen().left_panel.click_chat_by_name(user_two.name)
ChatMessagesView().send_message_to_group_chat('How are you')
message = chat.find_message_by_text(f'How are you', 0)
additional_text = '?'
@ -83,7 +83,7 @@ def test_1x1_chat(multiple_instances, user_data_one, user_data_two):
with step(f'User {user_two.name} opens 1x1 chat with {user_one.name}'):
aut_two.attach()
main_window.prepare()
messages_screen.left_panel.open_chat(user_one.name)
messages_screen.left_panel.click_chat_by_name(user_one.name)
with step(f'User {user_two.name} send reply to {user_one.name}'):
messages_screen.group_chat.send_message_to_group_chat('Hello squisher')

View File

@ -96,7 +96,7 @@ def test_switch_state_to_offline_online_automatic(multiple_instances, user_data_
aut_one.attach()
main_screen.prepare()
messages_view = main_screen.left_panel.open_messages_screen()
chat = messages_view.left_panel.open_chat(user_two.name)
chat = messages_view.left_panel.click_chat_by_name(user_two.name)
community_screen = chat.accept_community_invite(community_params['name'], '0')
with step(f'User {user_one.name}, verify welcome community popup'):

View File

@ -98,7 +98,7 @@ def test_messaging_settings_accepting_request(multiple_instances, user_data_one,
with step(f'Verify that 1X1 chat with {user_two.name} appeared for {user_one.name}'):
messages_screen = main_window.left_panel.open_messages_screen()
assert user_two.name in messages_screen.left_panel.contacts
assert user_two.name in messages_screen.left_panel.get_chats_list()
main_window.hide()
with step(f'Verify that 1X1 chat with {user_one.name} appeared for {user_two.name}'):