From 8c358d4ae4449c852dda11097f543cf52a61b9dc Mon Sep 17 00:00:00 2001 From: pavloburykh Date: Tue, 21 Mar 2023 08:38:42 +0200 Subject: [PATCH] e2e: fix login Signed-off-by: Parvesh Monu --- test/appium/views/sign_in_view.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/appium/views/sign_in_view.py b/test/appium/views/sign_in_view.py index 861f44a1582..a9c399bd272 100644 --- a/test/appium/views/sign_in_view.py +++ b/test/appium/views/sign_in_view.py @@ -54,9 +54,9 @@ def click(self): return self.navigate() -class SignInButton(Button): +class LogInButton(Button): def __init__(self, driver): - super().__init__(driver, translation_id="sign-in") + super().__init__(driver, accessibility_id="login-button") def navigate(self): from views.home_view import HomeView @@ -131,7 +131,7 @@ def __init__(self, driver): self.password_input = EditBox(self.driver, accessibility_id="password-input") self.migration_password_input = EditBox(self.driver, accessibility_id="enter-password-input") - self.sign_in_button = SignInButton(self.driver) + self.login_button = LogInButton(self.driver) self.access_key_button = AccessKeyButton(self.driver) self.generate_key_button = Button(self.driver, accessibility_id="generate-old-key") self.your_keys_more_icon = Button(self.driver, xpath="//androidx.appcompat.widget.LinearLayoutCompat") @@ -233,8 +233,6 @@ def recover_access(self, passphrase: str, password: str = common_password, keyca def sign_in(self, password=common_password, keycard=False, position=1): self.driver.info("## Sign in (password:%s, keycard:%s)" % (password, str(keycard)), device=False) - if self.multi_account_on_login_button.is_element_displayed(30): - self.get_multiaccount_by_position(position).click() if keycard: from views.keycard_view import KeycardView @@ -245,7 +243,7 @@ def sign_in(self, password=common_password, keycard=False, position=1): keycard_view.connect_selected_card_button.click() else: self.password_input.set_value(password) - self.sign_in_button.click() + self.login_button.click() self.driver.info("## Signed in successfully!", device=False) return self.get_home_view()