chore: commented steps for toast message verification in accept request test (#345)

This commit is contained in:
Valentina1133 2023-11-28 16:22:49 +04:00 committed by GitHub
parent f94f176bd3
commit 848fca521d
1 changed files with 7 additions and 6 deletions

View File

@ -63,12 +63,13 @@ def test_messaging_settings_accepting_request(multiple_instance, user_data_one,
assert user_one.name == contacts_settings.contact_items[0].contact
assert len(contacts_settings.contact_items) == 1
with step('Verify toast message about new contact request received'):
assert len(ToastMessage().get_toast_messages) == 1, \
f"Multiple toast messages appeared"
message = ToastMessage().get_toast_messages[0]
assert message == Messaging.NEW_CONTACT_REQUEST.value, \
f"Toast message is incorrect, current message is {message}"
# TODO: https://github.com/status-im/desktop-qa-automation/issues/346
# with step('Verify toast message about new contact request received'):
# assert len(ToastMessage().get_toast_messages) == 1, \
# f"Multiple toast messages appeared"
# message = ToastMessage().get_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)