chore(@e2e): enable toast verification for accepting contact request
This commit is contained in:
parent
c5a046933e
commit
f1ae8a2652
|
@ -1,3 +1,3 @@
|
|||
import pytest
|
||||
|
||||
marks = pytest.mark.critical
|
||||
marks = pytest.mark.critical
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue