diff --git a/test/e2e/tests/crtitical_tests_prs/__init__.py b/test/e2e/tests/crtitical_tests_prs/__init__.py index 92bec0a78c..8b74973196 100644 --- a/test/e2e/tests/crtitical_tests_prs/__init__.py +++ b/test/e2e/tests/crtitical_tests_prs/__init__.py @@ -1,3 +1,3 @@ import pytest -marks = pytest.mark.critical \ No newline at end of file +marks = pytest.mark.critical 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 05ed476e8c..865c76c279 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 @@ -11,7 +11,7 @@ from constants.images_paths import HEART_EMOJI_PATH, ANGRY_EMOJI_PATH, THUMBSUP_ LAUGHING_EMOJI_PATH, SAD_EMOJI_PATH from constants.messaging import Messaging from constants.wallet import WalletAddress -from gui.screens.messages import MessagesScreen, ToolBar +from gui.screens.messages import MessagesScreen import configs.testpath from constants import RandomUser, UserAccount @@ -80,14 +80,13 @@ def test_1x1_chat_add_contact_in_settings(multiple_instances): assert user_one.name == contacts_settings.contact_items[0].contact assert len(contacts_settings.contact_items) == 1 - # TODO https://github.com/status-im/desktop-qa-automation/issues/346 - # with step('Verify toast message about new contact request received'): - # toast_messages = main_window.wait_for_notification() - # assert len(toast_messages) == 1, \ - # f"Multiple toast messages appeared" - # message = toast_messages[0] - # assert message == Messaging.NEW_CONTACT_REQUEST.value, \ - # f"Toast message is incorrect, current message is {message}" + with step('Verify toast message about new contact request received'): + toast_messages = main_window.wait_for_notification() + assert len(toast_messages) == 1, \ + f"Multiple toast messages appeared" + message = toast_messages[0] + assert message == Messaging.NEW_CONTACT_REQUEST.value, \ + f"Toast message is incorrect, current message is {message}" with step(f'User {user_two.name}, accept contact request from {user_one.name}'): contacts_settings.accept_contact_request(user_one.name) diff --git a/test/e2e/tests/crtitical_tests_prs/test_settings_password_change_password.py b/test/e2e/tests/crtitical_tests_prs/test_settings_password_change_password.py index 07641e4615..3c526712a6 100644 --- a/test/e2e/tests/crtitical_tests_prs/test_settings_password_change_password.py +++ b/test/e2e/tests/crtitical_tests_prs/test_settings_password_change_password.py @@ -2,7 +2,7 @@ import allure import pytest from allure_commons._allure import step -from constants import UserAccount, RandomUser +from constants import UserAccount from scripts.utils.generators import random_password_string from gui.components.change_password_popup import ChangePasswordPopup from tests.settings.settings_profile import marks