Fixed failed e2e

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2019-05-09 16:28:33 +02:00
parent 625ff669f7
commit 5ce43b75f3
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
4 changed files with 11 additions and 13 deletions

View File

@ -189,8 +189,8 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
# device 2: open the chat and check messages
device_2_chat = device_2_home.get_chat_with_user(chat_name).click()
device_2_chat.join_chat_button.click()
if device_2_chat.chat_element_by_text(message_for_device_2).is_element_displayed():
self.errors.append('Message that was sent after device 2 has joined is visible')
if not device_2_chat.chat_element_by_text(message_for_device_2).is_element_displayed():
self.errors.append('Message that was sent after device 2 has joined is not visible')
self.verify_no_errors()
@marks.testrail_id(5756)

View File

@ -663,18 +663,16 @@ class TestMessagesOneToOneChatSingle(SingleDeviceTestCase):
sign_in_view = SignInView(self.driver)
home_view = sign_in_view.create_user()
status_test_dapp = home_view.open_status_test_dapp()
status_test_dapp.assets_button.click()
status_test_dapp.request_eth_button.click()
status_test_dapp.element_by_text('Faucet request recieved').wait_for_visibility_of_element()
status_test_dapp.ok_button.click()
status_test_dapp.cross_icon.click()
wallet_view = sign_in_view.wallet_button.click()
wallet_view = home_view.wallet_button.click()
wallet_view.set_up_wallet()
wallet_address = wallet_view.get_wallet_address()
home_view = wallet_view.get_back_to_home_view()
self.network_api.get_donate(wallet_address[2:])
home_view.wallet_button.click()
wallet_view.wait_balance_changed_on_wallet_screen()
wallet_view.get_back_to_home_view()
status_test_dapp = home_view.open_status_test_dapp()
transaction_view = status_test_dapp.request_stt_button.click()
wallet_view.done_button.click()
wallet_view.yes_button.click()

View File

@ -34,7 +34,7 @@ class TestDeepLinks(SingleDeviceTestCase):
sign_in_view.open_weblink_and_login(deep_link)
chat_view = sign_in_view.get_chat_view()
for text in basic_user['username'], 'Add to contacts', 'Send transaction':
if not chat_view.element_by_text(text).scroll_to_element():
if not chat_view.element_by_text(text).scroll_to_element(10):
pytest.fail("User profile screen is not opened")
@ -64,7 +64,7 @@ class TestDeepLinks(SingleDeviceTestCase):
sign_in_view.open_weblink_and_login(deep_link)
chat_view = sign_in_view.get_chat_view()
for text in basic_user['username'], 'Share my profile', 'Contacts':
if not chat_view.element_by_text(text).scroll_to_element():
if not chat_view.element_by_text(text).scroll_to_element(12):
pytest.fail("Own profile screen is not opened!")
@marks.testrail_id(5781)

View File

@ -242,7 +242,7 @@ class TestTransactionDApp(SingleDeviceTestCase):
# Requesting test ETH and waiting till the balance updates
send_transaction_view.cross_icon.click()
status_test_dapp.faucet_asset(asset='eth')
self.network_api.get_donate(wallet_address[2:])
self.network_api.verify_balance_is_updated(initial_balance=0, recipient_address=wallet_address[2:])
status_test_dapp.transactions_button.click()