Fixed test for transaction message when sending funds from wallet

Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
yevh-berdnyk 2018-07-16 19:18:44 +02:00
parent 3754e1dbae
commit 3ada73af89
No known key found for this signature in database
GPG Key ID: E9B425FDFC4DEA9C
5 changed files with 10 additions and 8 deletions

View File

@ -16,7 +16,8 @@ RERUN_ERRORS = [
"object has no attribute",
"[Errno 104] Connection reset by peer",
"Sauce could not start your job",
"HTTP Error 303"
"HTTP Error 303",
"http.client.RemoteDisconnected: Remote end closed connection without response"
]

View File

@ -103,7 +103,8 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
self.errors.append('Profile button counter is not shown')
profile_view = sign_in_view.profile_button.click()
profile_view.logout()
sign_in_view.click_account_by_position(0)
if sign_in_view.ok_button.is_element_displayed():
sign_in_view.ok_button.click()
sign_in_view.sign_in()
if sign_in_view.profile_button.counter.text != '1':
self.errors.append('Profile button counter is not shown after relogin')
@ -190,7 +191,6 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
profile_view.find_text_part('Questions around beta')
@marks.testrail_id(1416)
@marks.smoke_1
def test_contact_profile_view(self):
sign_in_view = SignInView(self.driver)
sign_in_view.create_user()

View File

@ -55,7 +55,8 @@ class TestChatManagement(SingleDeviceTestCase):
home.get_chat_with_user('#' + chat_name).swipe_and_delete()
profile = home.profile_button.click()
profile.logout()
sign_in.click_account_by_position(0)
if sign_in.ok_button.is_element_displayed():
sign_in.ok_button.click()
sign_in.sign_in()
if home.get_chat_with_user('#' + chat_name).is_element_displayed():
self.errors.append('Deleted public chat is present after relogin')

View File

@ -25,7 +25,8 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
public_key = device_2_home.get_public_key()
device_2_profile = device_2_home.get_profile_view()
device_2_profile.switch_network('Mainnet with upstream RPC')
device_2_sign_in.click_account_by_position(0)
if device_2_sign_in.ok_button.is_element_displayed():
device_2_sign_in.ok_button.click()
device_2_sign_in.sign_in()
device_1_chat = device_1_home.add_contact(public_key)

View File

@ -285,9 +285,8 @@ class TestTransactionWalletMultipleDevice(MultipleDeviceTestCase):
send_transaction.amount_edit_box.set_value(amount)
send_transaction.confirm()
send_transaction.chose_recipient_button.click()
send_transaction.enter_recipient_address_button.click()
send_transaction.enter_recipient_address_input.set_value(recipient['address'])
send_transaction.done_button.click()
send_transaction.recent_recipients_button.click()
send_transaction.element_by_text_part(recipient['username']).click()
send_transaction.sign_transaction(sender['password'])
wallet_1.home_button.click()