chore(@e2e): fix condition for emoji path (#16678)

This commit is contained in:
Anastasiya 2024-10-31 18:02:15 +03:00 committed by GitHub
parent faa3a41465
commit cca5ca2d80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ def test_1x1_chat_add_contact_in_settings(multiple_instances):
with step(f'User {user_one.name}, add reaction to the last message and verify it was added'): with step(f'User {user_one.name}, add reaction to the last message and verify it was added'):
occurrence = random.randint(1, 6) occurrence = random.randint(1, 6)
message.open_context_menu_for_message().add_reaction_to_message(occurrence) message.open_context_menu_for_message().add_reaction_to_message(occurrence)
assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] == str(message.get_emoji_reactions_pathes()[0]), assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] in str(message.get_emoji_reactions_pathes()[0]),
timeout), \ timeout), \
f"Emoji reaction is not correct" f"Emoji reaction is not correct"
main_window.hide() main_window.hide()
@ -216,7 +216,7 @@ def test_1x1_chat_add_contact_in_settings(multiple_instances):
aut_two.attach() aut_two.attach()
main_window.prepare() main_window.prepare()
message = chat.find_message_by_text(chat_message_reply, 0) message = chat.find_message_by_text(chat_message_reply, 0)
assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] == str(message.get_emoji_reactions_pathes()[0]), assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] in str(message.get_emoji_reactions_pathes()[0]),
timeout), \ timeout), \
f"Emoji reaction is not correct" f"Emoji reaction is not correct"
main_window.hide() main_window.hide()