Skip to content

Commit a7f9390

Browse files
committed
added scroll to logout button
Signed-off-by: Anton Danchenko <[email protected]>
1 parent 70bd6d0 commit a7f9390

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/appium/tests/atomic/account_management/test_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_backup_recovery_phrase(self):
104104
profile_view.logout()
105105
sign_in_view.sign_in()
106106
if sign_in_view.profile_button.counter.text != '1':
107-
self.errors.append('Profile button counter is not shown after relogin')
107+
self.errors.append('Profile button counter is not shown after re-login')
108108
sign_in_view.profile_button.click()
109109
profile_view.backup_recovery_phrase()
110110
if sign_in_view.profile_button.counter.is_element_displayed():

test/appium/views/profile_view.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def __init__(self, driver):
7575
super(LogoutButton, self).__init__(driver)
7676
self.locator = self.Locator.accessibility_id('log-out-button')
7777

78+
def click(self):
79+
self.scroll_to_element().click()
80+
info('Tap on %s' % self.name)
81+
return self.navigate()
82+
7883

7984
class LogoutDialog(BaseView):
8085
def __init__(self, driver):

0 commit comments

Comments
 (0)