Skip to content

Commit

Permalink
New onboarding e2e fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhy committed Jul 8, 2019
1 parent a30973f commit 4de1655
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,18 @@ def test_switch_users_and_add_new_account(self):
if sign_in.ok_button.is_element_displayed():
sign_in.ok_button.click()
sign_in.other_accounts_button.click()
sign_in.create_user()
sign_in.create_account_button.click()
sign_in.password_input.set_value(common_password)
sign_in.next_button.click()
sign_in.confirm_password_input.set_value(common_password)
sign_in.next_button.click()

sign_in.element_by_text_part('Display name').wait_for_element(60)
username = 'user_%s' % get_current_time()
sign_in.name_input.set_value(username)

sign_in.next_button.click()
sign_in.get_started_button.click()
if sign_in.get_public_key() == public_key:
pytest.fail('New account was not created')

Expand Down
2 changes: 1 addition & 1 deletion test/appium/views/sign_in_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __init__(self, driver, skip_popups=True):
self.other_accounts_button = OtherAccountsButton(self.driver)
self.privacy_policy_link = PrivacyPolicyLink(self.driver)

def create_user(self, username: str = '', password=common_password):
def create_user(self, password=common_password):
self.get_started_button.click()
self.generate_key_button.click()
self.next_button.click()
Expand Down

0 comments on commit 4de1655

Please sign in to comment.