Using of Jarrad contact is excluded in tests

Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
yevh-berdnyk 2018-04-17 16:26:08 +03:00
parent d2811d6c45
commit 210ea5df7d
No known key found for this signature in database
GPG Key ID: E9B425FDFC4DEA9C
2 changed files with 13 additions and 7 deletions

View File

@ -67,11 +67,14 @@ class TestSanity(SingleDeviceTestCase):
sign_in_view = SignInView(self.driver)
sign_in_view.create_user()
home_view = sign_in_view.get_home_view()
contact_user = basic_user
home_view.add_contact(contact_user['public_key'])
home_view.get_back_to_home_view()
start_new_chat_view = home_view.plus_button.click()
start_new_chat_view.start_new_chat_button.click()
contact_jarrad = home_view.element_by_text('Jarrad', 'button')
contact_jarrad.scroll_to_element()
contact_jarrad.click()
contact_name = home_view.element_by_text(contact_user['username'], 'button')
contact_name.scroll_to_element()
contact_name.click()
chat_view = home_view.get_chat_view()
commands = '/request', '/send'
@ -86,12 +89,12 @@ class TestSanity(SingleDeviceTestCase):
sign_in_view.first_account_button.click()
sign_in_view.password_input.send_keys('qwerty1234')
sign_in_view.sign_in_button.click()
contact_jarrad.wait_for_element(30)
contact_jarrad.click()
contact_name.wait_for_element(30)
contact_name.click()
for command in commands:
chat_view.find_full_text(command, 2)
chat_view.back_button.click()
home_view.create_group_chat(['Jarrad'])
home_view.create_group_chat([contact_user['username']])
@pytest.mark.sign_in
@pytest.mark.parametrize("input_text,outcome",

View File

@ -179,9 +179,12 @@ class TestTransaction(SingleDeviceTestCase):
@pytest.mark.pr
def test_send_eth_from_wallet_sign_now(self):
sender = transaction_users_wallet['A_USER']
recipient = transaction_users_wallet['B_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.add_contact(recipient['public_key'])
home_view.get_back_to_home_view()
wallet_view = home_view.wallet_button.click()
send_transaction = wallet_view.send_button.click()
send_transaction.amount_edit_box.click()
@ -189,7 +192,7 @@ class TestTransaction(SingleDeviceTestCase):
send_transaction.confirm()
send_transaction.chose_recipient_button.click()
send_transaction.recent_recipients_button.click()
recent_recipient = send_transaction.element_by_text('Jarrad')
recent_recipient = send_transaction.element_by_text(recipient['username'])
send_transaction.recent_recipients_button.click_until_presence_of_element(recent_recipient)
recent_recipient.click()
send_transaction.sign_transaction_button.click()