From debae1e5f676f0b735cb8dccdfb7d7aad9d1a972 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Tue, 24 Sep 2024 19:24:12 +0300 Subject: [PATCH] chore: fix 1x1 chat verification --- test/e2e/tests/crtitical_tests_prs/test_messaging_1x1_chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/tests/crtitical_tests_prs/test_messaging_1x1_chat.py b/test/e2e/tests/crtitical_tests_prs/test_messaging_1x1_chat.py index fcbb5a9ab8..645f51be30 100644 --- a/test/e2e/tests/crtitical_tests_prs/test_messaging_1x1_chat.py +++ b/test/e2e/tests/crtitical_tests_prs/test_messaging_1x1_chat.py @@ -146,7 +146,7 @@ def test_1x1_chat(multiple_instances): with step(f'User {user_one.name}, add reaction to the last message and verify it was added'): occurrence = random.randint(1, 6) message.open_context_menu_for_message().add_reaction_to_message(occurrence) - assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] == message.get_emoji_reactions_pathes()[0], + assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] == str(message.get_emoji_reactions_pathes()[0]), timeout),\ f"Emoji reaction is not correct" main_window.hide() @@ -155,7 +155,7 @@ def test_1x1_chat(multiple_instances): aut_two.attach() main_window.prepare() message = chat.find_message_by_text(chat_message_reply, 0) - assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] == message.get_emoji_reactions_pathes()[0], + assert driver.waitFor(lambda: EMOJI_PATHES[occurrence - 1] == str(message.get_emoji_reactions_pathes()[0]), timeout),\ f"Emoji reaction is not correct" main_window.hide()