chore: update 1x1 chat as well to use new method

This commit is contained in:
Anastasiya Semenkevich 2024-03-28 13:16:30 +03:00 committed by Anastasiya
parent 1963553f39
commit 9962d3580a
1 changed files with 2 additions and 2 deletions

View File

@ -117,10 +117,10 @@ def test_1x1_chat(multiple_instances):
assert '😎' in message_item assert '😎' in message_item
with step(f'User {user_one.name}, delete own message and verify it was deleted'): with step(f'User {user_one.name}, delete own message and verify it was deleted'):
message = messages_screen.left_panel.open_chat(user_two.name).find_message_by_text('How are you?', 2) message = messages_screen.left_panel.click_chat_by_name(user_two.name).find_message_by_text('How are you?', 2)
message.hover_message().delete_message() message.hover_message().delete_message()
with step(f'User {user_one.name}, cannot delete {user_two.name} message'): with step(f'User {user_one.name}, cannot delete {user_two.name} message'):
message = messages_screen.left_panel.open_chat(user_two.name).find_message_by_text('Hello squisher', 1) message = messages_screen.left_panel.click_chat_by_name(user_two.name).find_message_by_text('Hello squisher', 1)
assert not message.hover_message().is_delete_button_visible() assert not message.hover_message().is_delete_button_visible()
main_window.hide() main_window.hide()