chore: tiny fixes for several failures in nightly

This commit is contained in:
Anastasiya Semenkevich 2024-09-25 16:26:53 +03:00 committed by Anastasiya
parent fed6f79a66
commit 5476cde165
3 changed files with 7 additions and 5 deletions

View File

@ -4,7 +4,7 @@ from enum import Enum
class Messaging(Enum):
WELCOME_GROUP_MESSAGE = "Welcome to the beginning of the "
CONTACT_REQUEST_SENT = 'Contact Request Sent'
NO_FRIENDS_ITEM = 'You dont have any contacts yet'
NO_FRIENDS_ITEM = "You don't have any contacts yet"
NEW_CONTACT_REQUEST = 'New Contact Request'
MESSAGE_NOTE_IDENTITY_REQUEST = 'Ask a question only they can answer'
YOU_NEED_TO_BE_A_MEMBER = 'You need to be a member of this group to send messages'

View File

@ -59,7 +59,7 @@ def test_messaging_settings_rejecting_request(multiple_instances):
with step(f'Verify that contacts list of {user_two.name} is empty in messaging settings'):
contacts_settings = main_window.left_panel.open_settings().left_panel.open_messaging_settings().open_contacts_settings()
contacts_settings.open_contacts()
assert contacts_settings.no_friends_item_text == Messaging.NO_FRIENDS_ITEM.value
assert str(contacts_settings.no_friends_item_text) == Messaging.NO_FRIENDS_ITEM.value
assert contacts_settings.is_invite_friends_button_visible
main_window.hide()
@ -68,5 +68,5 @@ def test_messaging_settings_rejecting_request(multiple_instances):
main_window.prepare()
contacts_settings = main_window.left_panel.open_settings().left_panel.open_messaging_settings().open_contacts_settings()
contacts_settings.open_contacts()
assert contacts_settings.no_friends_item_text == Messaging.NO_FRIENDS_ITEM.value
assert str(contacts_settings.no_friends_item_text) == Messaging.NO_FRIENDS_ITEM.value
assert contacts_settings.is_invite_friends_button_visible

View File

@ -88,5 +88,7 @@ def test_mint_owner_and_tokenmaster_tokens(main_window, user_account):
configs.timeouts.UI_LOAD_TIMEOUT_MSEC)
with step('Verify that status of both tokens'):
assert driver.waitFor(lambda: (minted_tokens_view.get_owner_token_status == '1 of 1 (you hodl)'), 15000)
assert driver.waitFor(lambda: (minted_tokens_view.get_master_token_status == ''), 15000)
assert driver.waitFor(lambda: (minted_tokens_view.get_owner_token_status == '1 of 1 (you hodl)'), 60000), \
f'Owner token status was not updated and is {minted_tokens_view.get_owner_token_status}'
assert driver.waitFor(lambda: (minted_tokens_view.get_master_token_status == ''), 60000), \
f'Token master token status was not updated and is {minted_tokens_view.get_master_token_status}'