False failures fix
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
parent
c0ca114dfd
commit
0aaf20911a
|
@ -216,9 +216,8 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
|||
profile.edit_button.click()
|
||||
profile.edit_picture_button.click()
|
||||
profile.select_from_gallery_button.click()
|
||||
for _ in range(2):
|
||||
profile.deny_button.click()
|
||||
profile.element_by_text(camera_access_error_text).wait_for_visibility_of_element(3)
|
||||
profile.element_by_text(camera_access_error_text, element_type='text').wait_for_visibility_of_element(3)
|
||||
profile.ok_button.click()
|
||||
profile.edit_picture_button.click()
|
||||
profile.select_from_gallery_button.click()
|
||||
|
|
|
@ -30,6 +30,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
|||
device_1_chat = device_1_home.add_contact(public_key)
|
||||
amount_1 = device_1_chat.get_unique_amount()
|
||||
device_1_chat.send_transaction_in_1_1_chat('ETH', amount_1, common_password, wallet_set_up=True)
|
||||
device_1_chat.chat_element_by_text(amount_1).progress_bar.wait_for_invisibility_of_element()
|
||||
status_text_1 = device_1_chat.chat_element_by_text(amount_1).status.text
|
||||
if status_text_1 != 'Sent':
|
||||
self.errors.append("Message about sent funds has status '%s' instead of 'Sent'" % status_text_1)
|
||||
|
@ -38,6 +39,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
|||
chat_element_1 = device_2_chat.chat_element_by_text(amount_1)
|
||||
try:
|
||||
chat_element_1.wait_for_visibility_of_element(120)
|
||||
chat_element_1.progress_bar.wait_for_invisibility_of_element()
|
||||
if chat_element_1.status.text != 'Network mismatch':
|
||||
self.errors.append("'Network mismatch' warning is not shown for send transaction message")
|
||||
if not chat_element_1.contains_text('testnet'):
|
||||
|
@ -56,6 +58,7 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
|||
chat_element_2 = device_2_chat.chat_element_by_text(amount_2)
|
||||
try:
|
||||
chat_element_2.wait_for_visibility_of_element(120)
|
||||
chat_element_2.progress_bar.wait_for_invisibility_of_element()
|
||||
if chat_element_2.status.text != 'Network mismatch':
|
||||
self.errors.append("'Network mismatch' warning is not shown for request funds message")
|
||||
if not chat_element_2.contains_text('On testnet'):
|
||||
|
|
|
@ -51,7 +51,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
|||
|
||||
device_1.set_network_connection(2) # turning on WiFi connection on primary device
|
||||
|
||||
home_1.connection_status.wait_for_invisibility_of_element()
|
||||
home_1.connection_status.wait_for_invisibility_of_element(20)
|
||||
chat_element = home_1.get_chat_with_user(username_2)
|
||||
chat_element.wait_for_visibility_of_element(20)
|
||||
chat_1 = chat_element.click()
|
||||
|
@ -93,7 +93,6 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
|||
|
||||
device_1.set_network_connection(2) # turning on WiFi connection
|
||||
chat_1.element_by_text('Connecting to peers...').wait_for_invisibility_of_element(30)
|
||||
chat_1.reconnect()
|
||||
chat_1.element_by_text('Not sent. Tap for options').click()
|
||||
if not chat_1.element_by_text('Delete message').is_element_displayed():
|
||||
self.errors.append("'Delete message' button is not shown for not sent message")
|
||||
|
|
|
@ -52,7 +52,7 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||
status_test_dapp.element_starts_with_text('Mining new contract in tx:').wait_for_visibility_of_element()
|
||||
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(60):
|
||||
if not status_test_dapp.element_by_text(text).is_element_displayed(120):
|
||||
pytest.fail('Contract was not created')
|
||||
|
||||
@marks.testrail_id(3782)
|
||||
|
|
|
@ -45,8 +45,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
|||
recipient = transaction_users['E_USER']
|
||||
sender = transaction_users['F_USER']
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.recover_access(sender['passphrase'], sender['password'])
|
||||
home_view = sign_in_view.get_home_view()
|
||||
home_view = sign_in_view.recover_access(sender['passphrase'], sender['password'])
|
||||
wallet_view = home_view.wallet_button.click()
|
||||
wallet_view.set_up_wallet()
|
||||
send_transaction = wallet_view.send_transaction_button.click()
|
||||
|
@ -223,7 +222,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
|||
send_transaction.enter_recipient_address_button.click()
|
||||
send_transaction.enter_recipient_address_input.set_value(recipient['address'])
|
||||
send_transaction.done_button.click()
|
||||
send_transaction.sign_transaction_button.click()
|
||||
send_transaction.sign_transaction_button.click_until_presence_of_element(send_transaction.enter_password_input)
|
||||
send_transaction.enter_password_input.send_keys(sender['password'])
|
||||
send_transaction.sign_transaction_button.click_until_presence_of_element(send_transaction.got_it_button)
|
||||
send_transaction.got_it_button.click()
|
||||
|
|
|
@ -98,6 +98,11 @@ class HomeButton(TabButton):
|
|||
from views.home_view import HomeView
|
||||
return HomeView(self.driver)
|
||||
|
||||
def click(self):
|
||||
from views.home_view import PlusButton
|
||||
self.click_until_presence_of_element(PlusButton(self.driver))
|
||||
return self.navigate()
|
||||
|
||||
|
||||
class WalletButton(TabButton):
|
||||
def __init__(self, driver):
|
||||
|
@ -108,6 +113,15 @@ class WalletButton(TabButton):
|
|||
from views.wallet_view import WalletView
|
||||
return WalletView(self.driver)
|
||||
|
||||
def click(self):
|
||||
info('Tap on %s' % self.name)
|
||||
from views.wallet_view import SetUpButton, SendTransactionButton
|
||||
for _ in range(3):
|
||||
self.find_element().click()
|
||||
if SetUpButton(self.driver).is_element_displayed() or SendTransactionButton(
|
||||
self.driver).is_element_displayed():
|
||||
return self.navigate()
|
||||
|
||||
|
||||
class ProfileButton(TabButton):
|
||||
def __init__(self, driver):
|
||||
|
@ -118,6 +132,11 @@ class ProfileButton(TabButton):
|
|||
from views.profile_view import ProfileView
|
||||
return ProfileView(self.driver)
|
||||
|
||||
def click(self):
|
||||
from views.profile_view import ShareMyContactKeyButton
|
||||
self.click_until_presence_of_element(ShareMyContactKeyButton(self.driver))
|
||||
return self.navigate()
|
||||
|
||||
|
||||
class SaveButton(BaseButton):
|
||||
def __init__(self, driver):
|
||||
|
|
|
@ -178,7 +178,7 @@ class SendTransactionView(BaseView):
|
|||
self.sign_transaction_button.click_until_presence_of_element(self.enter_password_input)
|
||||
self.enter_password_input.send_keys(sender_password)
|
||||
self.sign_transaction_button.click()
|
||||
self.progress_bar.wait_for_invisibility_of_element(30)
|
||||
self.progress_bar.wait_for_invisibility_of_element(60)
|
||||
self.got_it_button.click()
|
||||
|
||||
def asset_by_name(self, asset_name):
|
||||
|
|
Loading…
Reference in New Issue