e2e: update for Syncing view

This commit is contained in:
Yevheniia Berdnyk 2024-07-02 18:27:17 +03:00
parent ac4ffd83db
commit e8e05e58e0
No known key found for this signature in database
3 changed files with 6 additions and 1 deletions

View File

@ -265,6 +265,7 @@ class BaseView(object):
self.password_input = EditBox(self.driver, accessibility_id="password-input") self.password_input = EditBox(self.driver, accessibility_id="password-input")
from views.sign_in_view import LogInButton from views.sign_in_view import LogInButton
self.login_button = LogInButton(self.driver) self.login_button = LogInButton(self.driver)
self.continue_button = Button(self.driver, accessibility_id='continue-button')
# Old UI Tabs # Old UI Tabs
self.home_button = HomeButton(self.driver) self.home_button = HomeButton(self.driver)

View File

@ -545,6 +545,11 @@ class ProfileView(BaseView):
def get_sync_code(self): def get_sync_code(self):
self.syncing_button.scroll_and_click() self.syncing_button.scroll_and_click()
self.sync_plus_button.click() self.sync_plus_button.click()
for checkbox in Button(
self.driver,
xpath="//*[@content-desc='checkbox-off'][@resource-id='checkbox-component']").find_elements():
checkbox.click()
self.continue_button.click()
self.slide_button_track.swipe_right_on_element(width_percentage=1.3) self.slide_button_track.swipe_right_on_element(width_percentage=1.3)
password_input = self.password_input.find_element() password_input = self.password_input.find_element()
password_input.send_keys(common_password) password_input.send_keys(common_password)

View File

@ -91,7 +91,6 @@ class WalletView(BaseView):
# Sending transaction # Sending transaction
self.address_text_input = EditBox(self.driver, accessibility_id='address-text-input') self.address_text_input = EditBox(self.driver, accessibility_id='address-text-input')
self.continue_button = Button(self.driver, accessibility_id='continue-button')
self.amount_input = EditBox(self.driver, xpath="//android.widget.EditText") self.amount_input = EditBox(self.driver, xpath="//android.widget.EditText")
self.confirm_button = Button(self.driver, accessibility_id='button-one') self.confirm_button = Button(self.driver, accessibility_id='button-one')
self.done_button = Button(self.driver, accessibility_id='done') self.done_button = Button(self.driver, accessibility_id='done')