From e8e05e58e04242e2f7daaf42b50bb7b7c4b8f6df Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Tue, 2 Jul 2024 18:27:17 +0300 Subject: [PATCH] e2e: update for Syncing view --- test/appium/views/base_view.py | 1 + test/appium/views/profile_view.py | 5 +++++ test/appium/views/wallet_view.py | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index 41eaa20f94..9a525c3748 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -265,6 +265,7 @@ class BaseView(object): self.password_input = EditBox(self.driver, accessibility_id="password-input") from views.sign_in_view import LogInButton self.login_button = LogInButton(self.driver) + self.continue_button = Button(self.driver, accessibility_id='continue-button') # Old UI Tabs self.home_button = HomeButton(self.driver) diff --git a/test/appium/views/profile_view.py b/test/appium/views/profile_view.py index f41aa077fe..2a8417ef6c 100644 --- a/test/appium/views/profile_view.py +++ b/test/appium/views/profile_view.py @@ -545,6 +545,11 @@ class ProfileView(BaseView): def get_sync_code(self): self.syncing_button.scroll_and_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) password_input = self.password_input.find_element() password_input.send_keys(common_password) diff --git a/test/appium/views/wallet_view.py b/test/appium/views/wallet_view.py index bfd87bca94..8bbb425d26 100644 --- a/test/appium/views/wallet_view.py +++ b/test/appium/views/wallet_view.py @@ -91,7 +91,6 @@ class WalletView(BaseView): # Sending transaction 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.confirm_button = Button(self.driver, accessibility_id='button-one') self.done_button = Button(self.driver, accessibility_id='done')