Soft errors handing separated per test
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
7bb45fdd8f
commit
5b742155d0
|
@ -32,7 +32,7 @@ class TestCreateAccount(SingleDeviceTestCase):
|
||||||
sign_in.name_input.send_keys('user_%s' % get_current_time())
|
sign_in.name_input.send_keys('user_%s' % get_current_time())
|
||||||
|
|
||||||
sign_in.next_button.click()
|
sign_in.next_button.click()
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5356)
|
@marks.testrail_id(5356)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -81,7 +81,7 @@ class TestCreateAccount(SingleDeviceTestCase):
|
||||||
shown_username = profile_view.default_username_text.text
|
shown_username = profile_view.default_username_text.text
|
||||||
if shown_username != username:
|
if shown_username != username:
|
||||||
self.errors.append("Default username '%s' doesn't match '%s'" % (shown_username, username))
|
self.errors.append("Default username '%s' doesn't match '%s'" % (shown_username, username))
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5460)
|
@marks.testrail_id(5460)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -106,7 +106,7 @@ class TestCreateAccount(SingleDeviceTestCase):
|
||||||
|
|
||||||
if not sign_in.find_text_part(mismatch_error):
|
if not sign_in.find_text_part(mismatch_error):
|
||||||
self.errors.append("'%s' is not shown")
|
self.errors.append("'%s' is not shown")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5414)
|
@marks.testrail_id(5414)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
|
|
@ -54,7 +54,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
chat.send_message_button.click()
|
chat.send_message_button.click()
|
||||||
if not chat.chat_element_by_text(message).is_element_displayed():
|
if not chat.chat_element_by_text(message).is_element_displayed():
|
||||||
self.errors.append("Message was not sent!")
|
self.errors.append("Message was not sent!")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(6228)
|
@marks.testrail_id(6228)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -106,7 +106,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
self.errors.append("Mobile data is enabled by default")
|
self.errors.append("Mobile data is enabled by default")
|
||||||
if not profile_view.ask_me_when_on_mobile_network.attribute_value("checked"):
|
if not profile_view.ask_me_when_on_mobile_network.attribute_value("checked"):
|
||||||
self.errors.append("'Ask me when on mobile network' is not enabled by default")
|
self.errors.append("'Ask me when on mobile network' is not enabled by default")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.testrail_id(5454)
|
@marks.testrail_id(5454)
|
||||||
|
@ -148,7 +148,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
wallet.share_via_messenger()
|
wallet.share_via_messenger()
|
||||||
if not wallet.element_by_text_part(address).is_element_present():
|
if not wallet.element_by_text_part(address).is_element_present():
|
||||||
self.errors.append("Can't share address")
|
self.errors.append("Can't share address")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5375)
|
@marks.testrail_id(5375)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -186,7 +186,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
chat.paste_text()
|
chat.paste_text()
|
||||||
if chat.chat_message_input.text != address:
|
if chat.chat_message_input.text != address:
|
||||||
self.errors.append('Wallet address was not copied')
|
self.errors.append('Wallet address was not copied')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5502)
|
@marks.testrail_id(5502)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -219,7 +219,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
self.errors.append('No ENS name is shown in own profile after adding')
|
self.errors.append('No ENS name is shown in own profile after adding')
|
||||||
if not dapp_view.element_by_text('%s.stateofus.eth' % ens_user['ens']).is_element_displayed():
|
if not dapp_view.element_by_text('%s.stateofus.eth' % ens_user['ens']).is_element_displayed():
|
||||||
self.errors.append('No ENS name is shown in own profile after adding')
|
self.errors.append('No ENS name is shown in own profile after adding')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5475)
|
@marks.testrail_id(5475)
|
||||||
@marks.low
|
@marks.low
|
||||||
|
@ -255,7 +255,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
profile_view.backup_recovery_phrase_button.click()
|
profile_view.backup_recovery_phrase_button.click()
|
||||||
if not profile_view.backup_recovery_phrase_button.is_element_displayed():
|
if not profile_view.backup_recovery_phrase_button.is_element_displayed():
|
||||||
self.errors.append('Back up seed phrase option is available after seed phrase backed up!')
|
self.errors.append('Back up seed phrase option is available after seed phrase backed up!')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5433)
|
@marks.testrail_id(5433)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -332,7 +332,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
for text in basic_user['username'], 'Remove from contacts', 'Send message', 'Block this user':
|
for text in basic_user['username'], 'Remove from contacts', 'Send message', 'Block this user':
|
||||||
if not chat_view.element_by_text(text).scroll_to_element():
|
if not chat_view.element_by_text(text).scroll_to_element():
|
||||||
self.errors.append('%s is not visible' % text)
|
self.errors.append('%s is not visible' % text)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5368)
|
@marks.testrail_id(5368)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -351,7 +351,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
for text in 'INFO', 'eth.beta':
|
for text in 'INFO', 'eth.beta':
|
||||||
if not profile_view.element_by_text(text).is_element_displayed():
|
if not profile_view.element_by_text(text).is_element_displayed():
|
||||||
self.errors.append('%s is not selected by default' % text)
|
self.errors.append('%s is not selected by default' % text)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.testrail_id(5468)
|
@marks.testrail_id(5468)
|
||||||
|
@ -421,7 +421,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
if not base_web_view.policy_summary.is_element_displayed():
|
if not base_web_view.policy_summary.is_element_displayed():
|
||||||
self.errors.append('{} Profile about view!'.format(no_link_open_error_msg))
|
self.errors.append('{} Profile about view!'.format(no_link_open_error_msg))
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5738)
|
@marks.testrail_id(5738)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -453,7 +453,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
dapp_view.allow_button.click(times_to_click=1)
|
dapp_view.allow_button.click(times_to_click=1)
|
||||||
if not dapp_view.element_by_text_part('to your profile').is_element_displayed():
|
if not dapp_view.element_by_text_part('to your profile').is_element_displayed():
|
||||||
self.errors.append('Profile permission is not asked')
|
self.errors.append('Profile permission is not asked')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5428)
|
@marks.testrail_id(5428)
|
||||||
@marks.low
|
@marks.low
|
||||||
|
@ -476,7 +476,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
message_input.paste_text_from_clipboard()
|
message_input.paste_text_from_clipboard()
|
||||||
if message_input.text != app_version:
|
if message_input.text != app_version:
|
||||||
self.errors.append('Version number was not copied to clipboard')
|
self.errors.append('Version number was not copied to clipboard')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5766)
|
@marks.testrail_id(5766)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -512,7 +512,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||||
if profile_view.confirm_button.is_element_displayed():
|
if profile_view.confirm_button.is_element_displayed():
|
||||||
self.errors.append('can select mailserver with "Autoselection" switched on')
|
self.errors.append('can select mailserver with "Autoselection" switched on')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.all
|
@marks.all
|
||||||
|
@ -663,7 +663,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||||
if not public_chat_1.chat_element_by_text(message).is_element_displayed(30):
|
if not public_chat_1.chat_element_by_text(message).is_element_displayed(30):
|
||||||
self.errors.append("Chat history wasn't fetched")
|
self.errors.append("Chat history wasn't fetched")
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5762)
|
@marks.testrail_id(5762)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -725,7 +725,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||||
if not chat.chat_element_by_text(message_after_sync).is_element_displayed():
|
if not chat.chat_element_by_text(message_after_sync).is_element_displayed():
|
||||||
self.errors.append('"%s" message in 1-1 is not synced' % message_after_sync)
|
self.errors.append('"%s" message in 1-1 is not synced' % message_after_sync)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5680)
|
@marks.testrail_id(5680)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -807,7 +807,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||||
if not device_2_profile.profile_picture.is_element_image_equals_template('sauce_logo_red_profile.png'):
|
if not device_2_profile.profile_picture.is_element_image_equals_template('sauce_logo_red_profile.png'):
|
||||||
self.errors.append('Profile picture was not updated after changing when devices are paired')
|
self.errors.append('Profile picture was not updated after changing when devices are paired')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(6226)
|
@marks.testrail_id(6226)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -857,4 +857,4 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||||
if chat_2.chat_element_by_text(message_text_2).username.text.lower() != '@' + user_1['ens']:
|
if chat_2.chat_element_by_text(message_text_2).username.text.lower() != '@' + user_1['ens']:
|
||||||
self.errors.append('ENS username is not shown in public chat')
|
self.errors.append('ENS username is not shown in public chat')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -25,7 +25,7 @@ class TestRecoverAccountSingleDevice(SingleDeviceTestCase):
|
||||||
profile_view.backup_recovery_phrase_button.click()
|
profile_view.backup_recovery_phrase_button.click()
|
||||||
if not profile_view.backup_recovery_phrase_button.is_element_displayed():
|
if not profile_view.backup_recovery_phrase_button.is_element_displayed():
|
||||||
self.errors.append('Back up seed phrase option is active for recovered account!')
|
self.errors.append('Back up seed phrase option is active for recovered account!')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.skip
|
@marks.skip
|
||||||
@marks.testrail_id(845)
|
@marks.testrail_id(845)
|
||||||
|
@ -147,7 +147,7 @@ class TestRecoverAccessFromSignInScreen(SingleDeviceTestCase):
|
||||||
else:
|
else:
|
||||||
recover_access_view.click_system_back_button()
|
recover_access_view.click_system_back_button()
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5499)
|
@marks.testrail_id(5499)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -194,4 +194,4 @@ class TestRecoverAccessFromSignInScreen(SingleDeviceTestCase):
|
||||||
self.errors.append('Restored wallet address "%s" does not match expected "%s"' % (address, account))
|
self.errors.append('Restored wallet address "%s" does not match expected "%s"' % (address, account))
|
||||||
profile_view = home_view.profile_button.click()
|
profile_view = home_view.profile_button.click()
|
||||||
profile_view.logout()
|
profile_view.logout()
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -50,7 +50,7 @@ class TestWalletManagement(SingleDeviceTestCase):
|
||||||
if wallet.element_by_text_part(text).is_element_displayed():
|
if wallet.element_by_text_part(text).is_element_displayed():
|
||||||
self.errors.append('Signing phrase pop up appears after wallet set up')
|
self.errors.append('Signing phrase pop up appears after wallet set up')
|
||||||
break
|
break
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5384)
|
@marks.testrail_id(5384)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -106,7 +106,7 @@ class TestWalletManagement(SingleDeviceTestCase):
|
||||||
wallet.select_asset(asset)
|
wallet.select_asset(asset)
|
||||||
if wallet.asset_by_name(asset).is_element_displayed():
|
if wallet.asset_by_name(asset).is_element_displayed():
|
||||||
self.errors.append('%s asset is shown in wallet but was deselected' % asset)
|
self.errors.append('%s asset is shown in wallet but was deselected' % asset)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5358)
|
@marks.testrail_id(5358)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -204,7 +204,7 @@ class TestWalletManagement(SingleDeviceTestCase):
|
||||||
if not details.element_by_text('Failed').is_element_displayed():
|
if not details.element_by_text('Failed').is_element_displayed():
|
||||||
self.driver.fail('Failed transactions are not filtered')
|
self.driver.fail('Failed transactions are not filtered')
|
||||||
details.back_button.click()
|
details.back_button.click()
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5381)
|
@marks.testrail_id(5381)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -275,7 +275,7 @@ class TestWalletManagement(SingleDeviceTestCase):
|
||||||
send_transaction.select_asset_button.click_until_presence_of_element(token_element)
|
send_transaction.select_asset_button.click_until_presence_of_element(token_element)
|
||||||
if not token_element.is_element_displayed():
|
if not token_element.is_element_displayed():
|
||||||
self.errors.append('Custom token is not shown on Send Transaction view')
|
self.errors.append('Custom token is not shown on Send Transaction view')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(6224)
|
@marks.testrail_id(6224)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -338,4 +338,4 @@ class TestWalletManagement(SingleDeviceTestCase):
|
||||||
if send_transaction.enter_recipient_address_text.text != ens_user_other_domain['address']:
|
if send_transaction.enter_recipient_address_text.text != ens_user_other_domain['address']:
|
||||||
self.errors.append('ENS address on another domain is not resolved as recipient')
|
self.errors.append('ENS address on another domain is not resolved as recipient')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -64,7 +64,7 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
home.join_public_chat(chat_name)
|
home.join_public_chat(chat_name)
|
||||||
if chat.chat_element_by_text(message).is_element_displayed():
|
if chat.chat_element_by_text(message).is_element_displayed():
|
||||||
self.errors.append('Chat history is shown')
|
self.errors.append('Chat history is shown')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5304)
|
@marks.testrail_id(5304)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -105,7 +105,7 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
home.relogin()
|
home.relogin()
|
||||||
if home.get_chat_with_user(basic_user['username']).is_element_present(10):
|
if home.get_chat_with_user(basic_user['username']).is_element_present(10):
|
||||||
self.errors.append("One-to-one' chat is shown after re-login, but the chat has been deleted")
|
self.errors.append("One-to-one' chat is shown after re-login, but the chat has been deleted")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5388)
|
@marks.testrail_id(5388)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -122,7 +122,7 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
home.relogin()
|
home.relogin()
|
||||||
if home.element_by_text(chat_name).is_element_present(5):
|
if home.element_by_text(chat_name).is_element_present(5):
|
||||||
self.errors.append("Public chat '%s' is shown after re-login, but the chat has been deleted" % chat_name)
|
self.errors.append("Public chat '%s' is shown after re-login, but the chat has been deleted" % chat_name)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5464)
|
@marks.testrail_id(5464)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -178,7 +178,7 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
self.errors.append("'%s' is shown on the home screen after searching by '%s' keyword" %
|
self.errors.append("'%s' is shown on the home screen after searching by '%s' keyword" %
|
||||||
(element.text, keyword))
|
(element.text, keyword))
|
||||||
home.search_chat_input.clear()
|
home.search_chat_input.clear()
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(6221)
|
@marks.testrail_id(6221)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -252,7 +252,7 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
|
||||||
if not contacts_1.element_by_text(username).is_element_displayed():
|
if not contacts_1.element_by_text(username).is_element_displayed():
|
||||||
self.errors.append("List of contacts doesn't contain added user")
|
self.errors.append("List of contacts doesn't contain added user")
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5786)
|
@marks.testrail_id(5786)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -396,4 +396,4 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
|
||||||
"Message from blocked user '%s' is received after fetching new messages from offline"
|
"Message from blocked user '%s' is received after fetching new messages from offline"
|
||||||
% device_2.driver.number)
|
% device_2.driver.number)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -73,7 +73,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
self.errors.append("Request funds message doesn't contain text 'Transaction Request'")
|
self.errors.append("Request funds message doesn't contain text 'Transaction Request'")
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
self.errors.append('Request funds message was not received')
|
self.errors.append('Request funds message was not received')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5306)
|
@marks.testrail_id(5306)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -127,7 +127,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount)
|
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount)
|
||||||
except Failed as e:
|
except Failed as e:
|
||||||
self.errors.append(e.msg)
|
self.errors.append(e.msg)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5318)
|
@marks.testrail_id(5318)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -166,7 +166,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount)
|
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount)
|
||||||
except Failed as e:
|
except Failed as e:
|
||||||
self.errors.append(e.msg)
|
self.errors.append(e.msg)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5324)
|
@marks.testrail_id(5324)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -212,7 +212,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
self.errors.append("Request funds message doesn't contain 'Send' button")
|
self.errors.append("Request funds message doesn't contain 'Send' button")
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
self.errors.append('Request funds message was not received')
|
self.errors.append('Request funds message was not received')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5383)
|
@marks.testrail_id(5383)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -276,7 +276,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount, token=True)
|
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount, token=True)
|
||||||
except Failed as e:
|
except Failed as e:
|
||||||
self.errors.append(e.msg)
|
self.errors.append(e.msg)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5352)
|
@marks.testrail_id(5352)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -313,7 +313,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount, token=True)
|
self.network_api.find_transaction_by_unique_amount(recipient['address'], amount, token=True)
|
||||||
except Failed as e:
|
except Failed as e:
|
||||||
self.errors.append(e.msg)
|
self.errors.append(e.msg)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5376)
|
@marks.testrail_id(5376)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -361,7 +361,7 @@ class TestCommandsSingleDevices(SingleDeviceTestCase):
|
||||||
chat.request_command.click()
|
chat.request_command.click()
|
||||||
if chat.asset_by_name('MDS').is_element_displayed():
|
if chat.asset_by_name('MDS').is_element_displayed():
|
||||||
self.errors.append('Token which is not enabled in wallet can be requested in 1-1 chat')
|
self.errors.append('Token which is not enabled in wallet can be requested in 1-1 chat')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.logcat
|
@marks.logcat
|
||||||
@marks.testrail_id(5417)
|
@marks.testrail_id(5417)
|
||||||
|
@ -410,7 +410,7 @@ class TestCommandsSingleDevices(SingleDeviceTestCase):
|
||||||
self.errors.append("Asset field doesn't contain 'ETHro' text")
|
self.errors.append("Asset field doesn't contain 'ETHro' text")
|
||||||
if not send_transaction_view.element_by_text_part(amount).is_element_displayed():
|
if not send_transaction_view.element_by_text_part(amount).is_element_displayed():
|
||||||
self.errors.append('Amount is not visible')
|
self.errors.append('Amount is not visible')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5377)
|
@marks.testrail_id(5377)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -464,7 +464,7 @@ class TestCommandsSingleDevices(SingleDeviceTestCase):
|
||||||
chat_view.send_message_button.click()
|
chat_view.send_message_button.click()
|
||||||
if not error_text.is_element_displayed():
|
if not error_text.is_element_displayed():
|
||||||
self.errors.append("'Insufficient funds' error is now shown when sending 1 STT from chat with balance 0")
|
self.errors.append("'Insufficient funds' error is now shown when sending 1 STT from chat with balance 0")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5473)
|
@marks.testrail_id(5473)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -505,4 +505,4 @@ class TestCommandsSingleDevices(SingleDeviceTestCase):
|
||||||
self.errors.append(
|
self.errors.append(
|
||||||
"'Insufficient funds' error is now shown when sending %s STT from chat with balance %s" % (
|
"'Insufficient funds' error is now shown when sending %s STT from chat with balance %s" % (
|
||||||
round(stt_value + 1), stt_value))
|
round(stt_value + 1), stt_value))
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -79,7 +79,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
if chat.user_name_text.text != chat_name:
|
if chat.user_name_text.text != chat_name:
|
||||||
self.errors.append('Oops! Chat screen does not match the entered chat name %s' % chat_name)
|
self.errors.append('Oops! Chat screen does not match the entered chat name %s' % chat_name)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(3993)
|
@marks.testrail_id(3993)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -99,7 +99,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
"Message from device: %s" % chat_driver.driver.number).is_element_displayed():
|
"Message from device: %s" % chat_driver.driver.number).is_element_displayed():
|
||||||
self.errors.append("Message from device '%s' was not received" % chat_driver.driver.number)
|
self.errors.append("Message from device '%s' was not received" % chat_driver.driver.number)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5674)
|
@marks.testrail_id(5674)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -128,7 +128,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
if not device_1_chat.chat_element_by_text(message).is_element_displayed():
|
if not device_1_chat.chat_element_by_text(message).is_element_displayed():
|
||||||
self.errors.append("Message with test '%s' was not received" % message)
|
self.errors.append("Message with test '%s' was not received" % message)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(3997)
|
@marks.testrail_id(3997)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -152,7 +152,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
if device_1_home.element_by_text(chat_name).is_element_displayed():
|
if device_1_home.element_by_text(chat_name).is_element_displayed():
|
||||||
self.errors.append("Group chat '%s' is shown, but the chat has been deleted" % chat_name)
|
self.errors.append("Group chat '%s' is shown, but the chat has been deleted" % chat_name)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(3998)
|
@marks.testrail_id(3998)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -191,7 +191,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
|
|
||||||
if not device_2_chat.chat_element_by_text(message_for_device_2).is_element_displayed(30):
|
if not device_2_chat.chat_element_by_text(message_for_device_2).is_element_displayed(30):
|
||||||
self.errors.append('Message that was sent after device 2 has joined is not visible')
|
self.errors.append('Message that was sent after device 2 has joined is not visible')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5756)
|
@marks.testrail_id(5756)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -220,7 +220,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
# device 2: check that chat doesn't reappear
|
# device 2: check that chat doesn't reappear
|
||||||
if device_2_home.element_by_text(chat_name).is_element_displayed():
|
if device_2_home.element_by_text(chat_name).is_element_displayed():
|
||||||
self.errors.append("Group chat '%s' is shown, but the chat has been deleted" % chat_name)
|
self.errors.append("Group chat '%s' is shown, but the chat has been deleted" % chat_name)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(4001)
|
@marks.testrail_id(4001)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -255,7 +255,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
if device_2_chat.chat_element_by_text(message_for_device_2).is_element_displayed():
|
if device_2_chat.chat_element_by_text(message_for_device_2).is_element_displayed():
|
||||||
self.errors.append("Message with text '%s' was received" % message_for_device_2)
|
self.errors.append("Message with text '%s' was received" % message_for_device_2)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5694)
|
@marks.testrail_id(5694)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -287,7 +287,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
# device 2: check that as admin can add new members to group chat
|
# device 2: check that as admin can add new members to group chat
|
||||||
device_2_chat.add_members_to_group_chat([chat_member['username']])
|
device_2_chat.add_members_to_group_chat([chat_member['username']])
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5681)
|
@marks.testrail_id(5681)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -323,4 +323,4 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
device_1_chat.driver.fail(
|
device_1_chat.driver.fail(
|
||||||
"Message '%s' is shown after re-login, but group chat history has been cleared" % message)
|
"Message '%s' is shown after re-login, but group chat history has been cleared" % message)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -146,7 +146,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
device_2_chat.view_profile_button.click()
|
device_2_chat.view_profile_button.click()
|
||||||
if not device_2_chat.contact_profile_picture.is_element_image_equals_template('sauce_logo.png'):
|
if not device_2_chat.contact_profile_picture.is_element_image_equals_template('sauce_logo.png'):
|
||||||
self.errors.append("Updated profile picture is not shown in one-to-one chat")
|
self.errors.append("Updated profile picture is not shown in one-to-one chat")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5316)
|
@marks.testrail_id(5316)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -191,7 +191,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
device_1_chat.view_profile_button.click()
|
device_1_chat.view_profile_button.click()
|
||||||
if not device_1_chat.contact_profile_picture.is_element_image_equals_template(file_name):
|
if not device_1_chat.contact_profile_picture.is_element_image_equals_template(file_name):
|
||||||
self.errors.append("Updated profile picture is not shown in one-to-one chat")
|
self.errors.append("Updated profile picture is not shown in one-to-one chat")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5373)
|
@marks.testrail_id(5373)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -233,7 +233,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
web_view.find_full_text('Private, Secure Communication')
|
web_view.find_full_text('Private, Secure Communication')
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
self.errors.append('Device 1: URL was not opened from 1-1 chat')
|
self.errors.append('Device 1: URL was not opened from 1-1 chat')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5326)
|
@marks.testrail_id(5326)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -255,7 +255,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
public_chat = home_view.join_public_chat(home_view.get_public_chat_name())
|
public_chat = home_view.join_public_chat(home_view.get_public_chat_name())
|
||||||
if public_chat.connection_status.text != 'Offline':
|
if public_chat.connection_status.text != 'Offline':
|
||||||
self.errors.append('Offline status is not shown in a public chat')
|
self.errors.append('Offline status is not shown in a public chat')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5374)
|
@marks.testrail_id(5374)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -269,7 +269,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
chat_view.send_message_button.click()
|
chat_view.send_message_button.click()
|
||||||
if chat_view.chat_element_by_text(message).status.text != 'Sent':
|
if chat_view.chat_element_by_text(message).status.text != 'Sent':
|
||||||
self.errors.append("'Sent' status is not shown under the sent text message")
|
self.errors.append("'Sent' status is not shown under the sent text message")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5362)
|
@marks.testrail_id(5362)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -304,7 +304,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
|
|
||||||
if chat_element.new_messages_counter.is_element_displayed():
|
if chat_element.new_messages_counter.is_element_displayed():
|
||||||
self.errors.append('New messages counter is shown on chat element for already seen message')
|
self.errors.append('New messages counter is shown on chat element for already seen message')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5425)
|
@marks.testrail_id(5425)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -365,7 +365,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
if not device_1_chat.chat_element_by_text(italic_text_expected).is_element_displayed():
|
if not device_1_chat.chat_element_by_text(italic_text_expected).is_element_displayed():
|
||||||
self.errors.append('Italic text is not displayed in 1-1 chat for the recipient')
|
self.errors.append('Italic text is not displayed in 1-1 chat for the recipient')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.skip
|
@marks.skip
|
||||||
@marks.testrail_id(5385)
|
@marks.testrail_id(5385)
|
||||||
|
@ -415,7 +415,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
if not device_1_chat.chat_element_by_text(message).member_photo.is_element_displayed():
|
if not device_1_chat.chat_element_by_text(message).member_photo.is_element_displayed():
|
||||||
self.errors.append('Member photo is not displayed in 1-1 chat for the recipient')
|
self.errors.append('Member photo is not displayed in 1-1 chat for the recipient')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5405)
|
@marks.testrail_id(5405)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -483,7 +483,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||||
# if not received_message.is_element_displayed() and not sent_message.contains_text(device2['currency']):
|
# if not received_message.is_element_displayed() and not sent_message.contains_text(device2['currency']):
|
||||||
# self.errors.append('Wrong currency fiat value while receiving ETH sent via wallet.')
|
# self.errors.append('Wrong currency fiat value while receiving ETH sent via wallet.')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.all
|
@marks.all
|
||||||
|
@ -521,7 +521,7 @@ class TestMessagesOneToOneChatSingle(SingleDeviceTestCase):
|
||||||
message_input.paste_text_from_clipboard()
|
message_input.paste_text_from_clipboard()
|
||||||
if message_input.text != message_text:
|
if message_input.text != message_text:
|
||||||
self.errors.append('Message text was not copied in 1-1 chat')
|
self.errors.append('Message text was not copied in 1-1 chat')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5322)
|
@marks.testrail_id(5322)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -570,7 +570,7 @@ class TestMessagesOneToOneChatSingle(SingleDeviceTestCase):
|
||||||
|
|
||||||
if not chat.chat_element_by_text(emoji_unicode).is_element_displayed():
|
if not chat.chat_element_by_text(emoji_unicode).is_element_displayed():
|
||||||
self.errors.append('Message with emoji was not sent in 1-1 chat')
|
self.errors.append('Message with emoji was not sent in 1-1 chat')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5393)
|
@marks.testrail_id(5393)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -661,7 +661,7 @@ class TestMessagesOneToOneChatSingle(SingleDeviceTestCase):
|
||||||
# if not request_message.is_element_displayed() and not request_message.contains_text(user_currency):
|
# if not request_message.is_element_displayed() and not request_message.contains_text(user_currency):
|
||||||
# self.errors.append('Wrong fiat value while requesting assets from wallet with user selected currency.')
|
# self.errors.append('Wrong fiat value while requesting assets from wallet with user selected currency.')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5782)
|
@marks.testrail_id(5782)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -695,7 +695,7 @@ class TestMessagesOneToOneChatSingle(SingleDeviceTestCase):
|
||||||
chat.swipe_right()
|
chat.swipe_right()
|
||||||
if not chat.sticker_icon.is_element_displayed():
|
if not chat.sticker_icon.is_element_displayed():
|
||||||
self.errors.append('Sticker is not shown in recently used list')
|
self.errors.append('Sticker is not shown in recently used list')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5783)
|
@marks.testrail_id(5783)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
|
|
@ -45,7 +45,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
# if chat_1.element_by_text_part(username_1).is_element_displayed():
|
# if chat_1.element_by_text_part(username_1).is_element_displayed():
|
||||||
# self.errors.append("Username '%s' is shown for the sender" % username_1)
|
# self.errors.append("Username '%s' is shown for the sender" % username_1)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5386)
|
@marks.testrail_id(5386)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -112,7 +112,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
|
|
||||||
if chat_element.new_messages_counter.is_element_displayed():
|
if chat_element.new_messages_counter.is_element_displayed():
|
||||||
self.errors.append('New messages counter is shown on chat element for already seen message')
|
self.errors.append('New messages counter is shown on chat element for already seen message')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(6202)
|
@marks.testrail_id(6202)
|
||||||
@marks.low
|
@marks.low
|
||||||
|
@ -147,7 +147,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase):
|
||||||
chat_element_1 = chat_1.chat_element_by_text(message_text)
|
chat_element_1 = chat_1.chat_element_by_text(message_text)
|
||||||
if not chat_element_1.is_element_displayed(sec=10) or chat_element_1.replied_message_text != emoji_unicode:
|
if not chat_element_1.is_element_displayed(sec=10) or chat_element_1.replied_message_text != emoji_unicode:
|
||||||
self.errors.append('Reply message was not received by the sender')
|
self.errors.append('Reply message was not received by the sender')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.chat
|
@marks.chat
|
||||||
|
@ -169,7 +169,7 @@ class TestPublicChatSingleDevice(SingleDeviceTestCase):
|
||||||
public_chat.send_message_button.click()
|
public_chat.send_message_button.click()
|
||||||
if not public_chat.chat_element_by_text(message).is_element_displayed():
|
if not public_chat.chat_element_by_text(message).is_element_displayed():
|
||||||
self.errors.append('Message with korean characters is not shown')
|
self.errors.append('Message with korean characters is not shown')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.skip
|
@marks.skip
|
||||||
@marks.testrail_id(5336)
|
@marks.testrail_id(5336)
|
||||||
|
@ -204,7 +204,7 @@ class TestPublicChatSingleDevice(SingleDeviceTestCase):
|
||||||
if len(chat.chat_item.find_elements()) <= 1:
|
if len(chat.chat_item.find_elements()) <= 1:
|
||||||
self.errors.append('No messages fetched for yesterday!')
|
self.errors.append('No messages fetched for yesterday!')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5675)
|
@marks.testrail_id(5675)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -240,4 +240,4 @@ class TestPublicChatSingleDevice(SingleDeviceTestCase):
|
||||||
for message in (before_yesterday, quiet_time_before_yesterday):
|
for message in (before_yesterday, quiet_time_before_yesterday):
|
||||||
if not chat.element_by_text_part(message).is_element_displayed():
|
if not chat.element_by_text_part(message).is_element_displayed():
|
||||||
self.driver.fail('"%s" is not shown' % message)
|
self.driver.fail('"%s" is not shown' % message)
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -64,7 +64,7 @@ class TestDApps(SingleDeviceTestCase):
|
||||||
dapp_view.open_url(test_dapp_url)
|
dapp_view.open_url(test_dapp_url)
|
||||||
if status_test_dapp.allow_button.is_element_displayed():
|
if status_test_dapp.allow_button.is_element_displayed():
|
||||||
self.driver.append('DApp is asking permissions after relogin (Always allow is enabled)')
|
self.driver.append('DApp is asking permissions after relogin (Always allow is enabled)')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.testrail_id(6232)
|
@marks.testrail_id(6232)
|
||||||
|
@ -121,7 +121,7 @@ class TestDApps(SingleDeviceTestCase):
|
||||||
if not send_transaction_view.element_by_text(address).is_element_displayed():
|
if not send_transaction_view.element_by_text(address).is_element_displayed():
|
||||||
self.errors.append("Wallet address %s in not shown in 'From' on Send Transaction screen" % address)
|
self.errors.append("Wallet address %s in not shown in 'From' on Send Transaction screen" % address)
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5654)
|
@marks.testrail_id(5654)
|
||||||
@marks.low
|
@marks.low
|
||||||
|
|
|
@ -291,7 +291,7 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
||||||
if not status_test_dapp.assets_button.is_element_displayed():
|
if not status_test_dapp.assets_button.is_element_displayed():
|
||||||
self.errors.append('Could not sing the transaction!')
|
self.errors.append('Could not sing the transaction!')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5686)
|
@marks.testrail_id(5686)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -390,7 +390,7 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
||||||
if not wallet.send_transaction_button.is_element_displayed():
|
if not wallet.send_transaction_button.is_element_displayed():
|
||||||
self.errors.append('Could not sign the transaction!')
|
self.errors.append('Could not sign the transaction!')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5687)
|
@marks.testrail_id(5687)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -469,4 +469,4 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
||||||
if not wallet.send_transaction_button.is_element_displayed():
|
if not wallet.send_transaction_button.is_element_displayed():
|
||||||
self.errors.append('Could not sing the transaction!')
|
self.errors.append('Could not sing the transaction!')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -245,7 +245,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
||||||
# error_text = 'Amount is too precise. Max number of decimals is 7.'
|
# error_text = 'Amount is too precise. Max number of decimals is 7.'
|
||||||
# if not send_transaction.element_by_text(error_text).is_element_displayed():
|
# if not send_transaction.element_by_text(error_text).is_element_displayed():
|
||||||
# self.errors.append('Warning about too precise amount is not shown when requesting a transaction')
|
# self.errors.append('Warning about too precise amount is not shown when requesting a transaction')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5423)
|
@marks.testrail_id(5423)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -294,7 +294,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
||||||
send_transaction.amount_edit_box.set_value(1)
|
send_transaction.amount_edit_box.set_value(1)
|
||||||
if not error_text.is_element_displayed():
|
if not error_text.is_element_displayed():
|
||||||
self.errors.append("'Insufficient funds' error is now shown when sending 1 STT from wallet with balance 0")
|
self.errors.append("'Insufficient funds' error is now shown when sending 1 STT from wallet with balance 0")
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5412)
|
@marks.testrail_id(5412)
|
||||||
@marks.high
|
@marks.high
|
||||||
|
@ -324,7 +324,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
||||||
self.errors.append(
|
self.errors.append(
|
||||||
"'Insufficient funds' error is now shown when sending %s STT from wallet with balance %s" % (
|
"'Insufficient funds' error is now shown when sending %s STT from wallet with balance %s" % (
|
||||||
round(stt_value + 1), stt_value))
|
round(stt_value + 1), stt_value))
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5359)
|
@marks.testrail_id(5359)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
|
@ -400,7 +400,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
||||||
self.errors.append('Transactions recipients do not match!')
|
self.errors.append('Transactions recipients do not match!')
|
||||||
transactions_details.back_button.click()
|
transactions_details.back_button.click()
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(5429)
|
@marks.testrail_id(5429)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
|
@ -536,7 +536,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
||||||
if not account_button.color_matches('multi_account_color.png'):
|
if not account_button.color_matches('multi_account_color.png'):
|
||||||
self.driver.fail('Account color does not match expected')
|
self.driver.fail('Account color does not match expected')
|
||||||
|
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.transaction
|
@marks.transaction
|
||||||
|
@ -578,4 +578,4 @@ class TestTransactionWalletMultipleDevice(MultipleDeviceTestCase):
|
||||||
chat_2 = home_2.get_chat_with_user(sender['username']).click()
|
chat_2 = home_2.get_chat_with_user(sender['username']).click()
|
||||||
if not chat_2.chat_element_by_text(amount).is_element_displayed():
|
if not chat_2.chat_element_by_text(amount).is_element_displayed():
|
||||||
self.errors.append('Transaction message is not shown in 1-1 chat for the recipient')
|
self.errors.append('Transaction message is not shown in 1-1 chat for the recipient')
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
|
@ -115,15 +115,9 @@ class AbstractTestCase:
|
||||||
def implicitly_wait(self):
|
def implicitly_wait(self):
|
||||||
return 5
|
return 5
|
||||||
|
|
||||||
errors = []
|
|
||||||
|
|
||||||
network_api = NetworkApi()
|
network_api = NetworkApi()
|
||||||
github_report = GithubHtmlReport()
|
github_report = GithubHtmlReport()
|
||||||
|
|
||||||
def verify_no_errors(self):
|
|
||||||
if self.errors:
|
|
||||||
pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
|
|
||||||
|
|
||||||
def is_alert_present(self, driver):
|
def is_alert_present(self, driver):
|
||||||
try:
|
try:
|
||||||
return driver.find_element(MobileBy.ID, 'android:id/message')
|
return driver.find_element(MobileBy.ID, 'android:id/message')
|
||||||
|
@ -155,6 +149,18 @@ class Driver(webdriver.Remote):
|
||||||
pytest.fail('Device %s: %s' % (self.number, text))
|
pytest.fail('Device %s: %s' % (self.number, text))
|
||||||
|
|
||||||
|
|
||||||
|
class Errors(object):
|
||||||
|
def __init__(self):
|
||||||
|
self.errors = list()
|
||||||
|
|
||||||
|
def append(self, text=str()):
|
||||||
|
self.errors.append(text)
|
||||||
|
|
||||||
|
def verify_no_errors(self):
|
||||||
|
if self.errors:
|
||||||
|
pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
|
||||||
|
|
||||||
|
|
||||||
class SingleDeviceTestCase(AbstractTestCase):
|
class SingleDeviceTestCase(AbstractTestCase):
|
||||||
|
|
||||||
def setup_method(self, method, **kwargs):
|
def setup_method(self, method, **kwargs):
|
||||||
|
@ -169,6 +175,7 @@ class SingleDeviceTestCase(AbstractTestCase):
|
||||||
self.driver = Driver(executor, capabilities)
|
self.driver = Driver(executor, capabilities)
|
||||||
test_suite_data.current_test.testruns[-1].jobs[self.driver.session_id] = 1
|
test_suite_data.current_test.testruns[-1].jobs[self.driver.session_id] = 1
|
||||||
self.driver.implicitly_wait(self.implicitly_wait)
|
self.driver.implicitly_wait(self.implicitly_wait)
|
||||||
|
self.errors = Errors()
|
||||||
|
|
||||||
if pytest.config.getoption('docker'):
|
if pytest.config.getoption('docker'):
|
||||||
appium_container.reset_battery_stats()
|
appium_container.reset_battery_stats()
|
||||||
|
@ -191,6 +198,7 @@ class LocalMultipleDeviceTestCase(AbstractTestCase):
|
||||||
|
|
||||||
def setup_method(self, method):
|
def setup_method(self, method):
|
||||||
self.drivers = dict()
|
self.drivers = dict()
|
||||||
|
self.errors = Errors()
|
||||||
|
|
||||||
def create_drivers(self, quantity):
|
def create_drivers(self, quantity):
|
||||||
capabilities = self.add_local_devices_to_capabilities()
|
capabilities = self.add_local_devices_to_capabilities()
|
||||||
|
@ -217,6 +225,7 @@ class SauceMultipleDeviceTestCase(AbstractTestCase):
|
||||||
|
|
||||||
def setup_method(self, method):
|
def setup_method(self, method):
|
||||||
self.drivers = dict()
|
self.drivers = dict()
|
||||||
|
self.errors = Errors()
|
||||||
|
|
||||||
def create_drivers(self, quantity=2, max_duration=1800, custom_implicitly_wait=None):
|
def create_drivers(self, quantity=2, max_duration=1800, custom_implicitly_wait=None):
|
||||||
capabilities = {'maxDuration': max_duration}
|
capabilities = {'maxDuration': max_duration}
|
||||||
|
|
|
@ -63,4 +63,4 @@ class TestPerformance(SingleDeviceTestCase):
|
||||||
self.errors.append(
|
self.errors.append(
|
||||||
"time between submitting a password and successful login is '%s' seconds, while baseline is '%s'!"
|
"time between submitting a password and successful login is '%s' seconds, while baseline is '%s'!"
|
||||||
% (time_to_login, baseline_login))
|
% (time_to_login, baseline_login))
|
||||||
self.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
Loading…
Reference in New Issue