mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 10:46:21 +00:00
Remove share data screen from appium tests
This commit is contained in:
parent
bb7d31a357
commit
9766740e43
@ -27,13 +27,6 @@ class TestCreateAccount(SingleDeviceTestCase):
|
||||
sign_in.name_input.send_keys('user_%s' % get_current_time())
|
||||
|
||||
sign_in.next_button.click()
|
||||
if not sign_in.learn_more_link.is_element_displayed(10):
|
||||
self.errors.append("'Learn more about what we collect' is not shown")
|
||||
if not sign_in.share_data_button.is_element_displayed(10):
|
||||
self.errors.append("'Share data' button is not visible")
|
||||
if not sign_in.do_not_share_button.is_element_displayed(10):
|
||||
self.errors.append("'Do not share' button is not visible")
|
||||
self.verify_no_errors()
|
||||
|
||||
@marks.testrail_id(1433)
|
||||
def test_switch_users_and_add_new_account(self):
|
||||
|
@ -95,7 +95,6 @@ class TestProfileView(SingleDeviceTestCase):
|
||||
recover_access_view.password_input.click()
|
||||
recover_access_view.send_as_keyevent('qwerty1234')
|
||||
recover_access_view.sign_in_button.click()
|
||||
sign_in_view.do_not_share_button.click()
|
||||
public_key_1 = home_view.get_public_key()
|
||||
assert public_key == public_key_1
|
||||
|
||||
@ -146,8 +145,6 @@ class TestProfileView(SingleDeviceTestCase):
|
||||
sign_in_view.name_input.click()
|
||||
sign_in_view.name_input.send_keys(emoji.emojize('%s %s' % (username, emoji_name)))
|
||||
sign_in_view.next_button.click()
|
||||
sign_in_view.do_not_share_button.wait_for_element(10)
|
||||
sign_in_view.do_not_share_button.click_until_presence_of_element(sign_in_view.home_button)
|
||||
profile_view = sign_in_view.profile_button.click()
|
||||
profile_view.swipe_down()
|
||||
assert profile_view.username_text.text == '%s %s' % (username, emoji.EMOJI_UNICODE[emoji_name])
|
||||
|
@ -119,9 +119,6 @@ class SignInView(BaseView):
|
||||
self.add_existing_account_button = AddExistingAccountButton(self.driver)
|
||||
self.confirm_password_input = ConfirmPasswordInput(self.driver)
|
||||
self.name_input = NameInput(self.driver)
|
||||
self.learn_more_link = LearnMoreLink(self.driver)
|
||||
self.share_data_button = ShareDataButton(self.driver)
|
||||
self.do_not_share_button = DonNotShareButton(self.driver)
|
||||
self.other_accounts_button = OtherAccountsButton(self.driver)
|
||||
|
||||
def create_user(self, username: str = '', password=common_password):
|
||||
@ -137,8 +134,6 @@ class SignInView(BaseView):
|
||||
self.confirm()
|
||||
|
||||
self.next_button.click()
|
||||
self.do_not_share_button.wait_for_visibility_of_element(10)
|
||||
self.do_not_share_button.click_until_presence_of_element(self.home_button)
|
||||
return self.get_home_view()
|
||||
|
||||
def recover_access(self, passphrase, password):
|
||||
@ -148,8 +143,6 @@ class SignInView(BaseView):
|
||||
recover_access_view.password_input.click()
|
||||
recover_access_view.send_as_keyevent(password)
|
||||
recover_access_view.sign_in_button.click()
|
||||
self.do_not_share_button.wait_for_element(10)
|
||||
self.do_not_share_button.click_until_presence_of_element(self.home_button)
|
||||
return self.get_home_view()
|
||||
|
||||
def open_status_test_dapp(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user