2017-08-31 16:39:41 +03:00
|
|
|
def set_password_as_new_user(*args):
|
2017-08-28 13:02:20 +03:00
|
|
|
for view in args:
|
|
|
|
view.request_password_icon.click()
|
2017-09-26 13:50:34 +03:00
|
|
|
view.chat_request_input.send_keys("qwerty1234")
|
2017-08-28 13:02:20 +03:00
|
|
|
view.confirm()
|
2017-09-26 13:50:34 +03:00
|
|
|
view.chat_request_input.send_keys("qwerty1234")
|
2017-08-28 13:02:20 +03:00
|
|
|
view.confirm()
|
2017-10-23 23:46:49 +03:00
|
|
|
view.find_full_text(
|
|
|
|
"Here is your signing phrase. You will use it to verify your transactions. Write it down and keep it safe!")
|
2017-09-26 13:50:34 +03:00
|
|
|
|
|
|
|
|
2017-10-23 13:23:14 +03:00
|
|
|
def recover_access(home, passphrase, password, username):
|
|
|
|
login = home.recover_button.click()
|
2017-09-26 13:50:34 +03:00
|
|
|
login.passphrase_input.send_keys(passphrase)
|
|
|
|
login.password_input.send_keys(password)
|
|
|
|
login.confirm_recover_access.click()
|
|
|
|
recovered_user = login.element_by_text(username, 'button')
|
2017-10-05 22:41:17 +03:00
|
|
|
login.confirm()
|
2017-09-26 13:50:34 +03:00
|
|
|
recovered_user.click()
|
|
|
|
login.password_input.send_keys(password)
|
|
|
|
login.sign_in_button.click()
|
2017-10-05 22:41:17 +03:00
|
|
|
login.find_full_text('Chats', 60)
|