added waits

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2019-11-12 11:21:55 +01:00
parent 13b01ce879
commit 2ed62e53eb
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
2 changed files with 3 additions and 2 deletions

View File

@ -840,6 +840,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
@marks.testrail_id(6226)
@marks.critical
# TODO: should be completed after https://github.com/status-im/status-react/issues/8854 is ready
def test_ens_in_public_chat(self):
self.create_drivers(2)
device_1, device_2 = self.drivers[0], self.drivers[1]
@ -881,7 +882,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
home_1.get_chat_with_user('#' + chat_name).click()
message_text_2 = 'message test text 1'
chat_1.send_message(message_text_2)
if chat_2.chat_element_by_text(message_text_2).username.text.lower() != '@' + user_1['ens']:
if not chat_2.wait_for_element_starts_with_text('@' + user_1['ens']):
self.errors.append('ENS username is not shown in public chat')
self.errors.verify_no_errors()

View File

@ -58,7 +58,7 @@ class TestTransactionDApp(SingleDeviceTestCase):
send_transaction_view.sign_transaction()
for text in 'Contract deployed at: ', 'Call contract get function', \
'Call contract set function', 'Call function 2 times in a row':
if not status_test_dapp.element_by_text(text).is_element_displayed(120):
if not status_test_dapp.element_by_text(text).is_element_displayed(180):
self.driver.fail('Contract was not created')
@marks.testrail_id(5784)