e2e: automate backup of contacts
This commit is contained in:
parent
7b7a86284b
commit
6cb48834ae
|
@ -268,6 +268,39 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
|||
|
||||
self.errors.verify_no_errors()
|
||||
|
||||
@marks.testrail_id(700702)
|
||||
@marks.medium
|
||||
def test_backup_of_contacts(self):
|
||||
sign_in = SignInView(self.driver)
|
||||
home = sign_in.create_user()
|
||||
|
||||
home.just_fyi('Add user to contacts')
|
||||
home.add_contact(basic_user['public_key'])
|
||||
|
||||
home.just_fyi('Back up contacts')
|
||||
profile = home.profile_button.click()
|
||||
profile.sync_settings_button.click()
|
||||
profile.backup_settings_button.click()
|
||||
profile.perform_backup_button.click()
|
||||
|
||||
profile.just_fyi('Back up seed phrase')
|
||||
profile.back_button.click(2)
|
||||
profile.privacy_and_security_button.click()
|
||||
profile.backup_recovery_phrase_button.click()
|
||||
profile.ok_continue_button.click()
|
||||
recovery_phrase = profile.get_recovery_phrase()
|
||||
self.driver.reset()
|
||||
|
||||
profile.just_fyi('Recover account from seed phrase')
|
||||
sign_in.recover_access(' '.join(recovery_phrase.values()))
|
||||
|
||||
sign_in.just_fyi('Check backed up contact')
|
||||
profile.profile_button.click()
|
||||
profile.contacts_button.click()
|
||||
profile.element_by_text(basic_user["username"])
|
||||
if not profile.element_by_text(basic_user['username']).is_element_displayed():
|
||||
self.driver.fail("Contact was not backed up!")
|
||||
|
||||
@marks.testrail_id(5431)
|
||||
@marks.medium
|
||||
def test_add_custom_network(self):
|
||||
|
|
|
@ -253,6 +253,11 @@ class ProfileView(BaseView):
|
|||
suffix="/following-sibling::android.widget.Switch[1]")
|
||||
self.ask_me_when_on_mobile_network = Button(self.driver, translation_id="mobile-network-ask-me",
|
||||
suffix="/following-sibling::android.widget.Switch[1]")
|
||||
## Backup settings
|
||||
self.backup_settings_button = Button(self.driver, accessibility_id="backup-settings-button")
|
||||
## Perform backup
|
||||
self.perform_backup_button = Button(self.driver, translation_id="perform-backup")
|
||||
|
||||
## Sync history data
|
||||
self.sync_history_for_button = Button(self.driver, accessibility_id="default-sync-period-button")
|
||||
## History nodes
|
||||
|
|
Loading…
Reference in New Issue