Skip to content

Commit

Permalink
Test seedphrase not active after backup
Browse files Browse the repository at this point in the history
Signed-off-by: Serhy <sergii@status.im>
  • Loading branch information
Serhy committed Oct 10, 2019
1 parent d063d94 commit 5a02ecf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
5 changes: 4 additions & 1 deletion test/appium/tests/atomic/account_management/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,11 @@ def test_backup_recovery_phrase(self):
profile_view.privacy_and_security_button.click()
profile_view.backup_recovery_phrase_button.click()
profile_view.backup_recovery_phrase()
if sign_in_view.profile_button.counter.is_element_displayed(60):
if sign_in_view.profile_button.counter.is_element_displayed():
self.errors.append('Profile button counter is shown after recovery phrase backup')
profile_view.backup_recovery_phrase_button.click()
if not profile_view.backup_recovery_phrase_button.is_element_displayed():
self.errors.append('Back up seed phrase option is available after seed phrase backed up!')
self.verify_no_errors()

@marks.testrail_id(5433)
Expand Down
38 changes: 12 additions & 26 deletions test/appium/tests/atomic/account_management/test_recover.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,19 @@
@marks.account
class TestRecoverAccountSingleDevice(SingleDeviceTestCase):

@marks.testrail_id(5301)
@marks.critical
@marks.battery_consumption
@marks.skip
def test_recover_account(self):
@marks.testrail_id(6231)
@marks.medium
def test_no_backup_seedphrase_option_for_recovered_account(self):
sign_in = SignInView(self.driver)
home = sign_in.create_user()
public_key = home.get_public_key()
profile = home.get_profile_view()
profile.backup_recovery_phrase_button.click()
profile.ok_continue_button.click()
recovery_phrase = profile.get_recovery_phrase()
profile.back_button.click()
wallet = profile.wallet_button.click()
wallet.set_up_wallet()
address = wallet.get_wallet_address()
self.driver.reset()
sign_in.accept_agreements()
sign_in.recover_access(passphrase=' '.join(recovery_phrase.values()))
home.wallet_button.click()
wallet.set_up_wallet()
address2 = wallet.get_wallet_address()
if address2 != address:
self.errors.append('Wallet address is %s after recovery, but %s is expected' % (address2, address))
public_key2 = wallet.get_public_key()
if public_key2 != public_key:
self.errors.append('Public key is %s after recovery, but %s is expected' % (public_key2, public_key))
sign_in.recover_access(passphrase=basic_user['passphrase'], password=unique_password)
profile_view = sign_in.profile_button.click()
profile_view.privacy_and_security_button.click()
profile_view.backup_recovery_phrase_button.click()
if profile_view.profile_button.counter.is_element_displayed():
self.errors.append('Profile button counter is shown on recovered account')
profile_view.backup_recovery_phrase_button.click()
if not profile_view.backup_recovery_phrase_button.is_element_displayed():
self.errors.append('Back up seed phrase option is active for recovered account!')
self.verify_no_errors()

@marks.skip
Expand Down

0 comments on commit 5a02ecf

Please sign in to comment.