added scroll to logout button
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
parent
70bd6d0070
commit
a7f9390fee
|
@ -104,7 +104,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
|||
profile_view.logout()
|
||||
sign_in_view.sign_in()
|
||||
if sign_in_view.profile_button.counter.text != '1':
|
||||
self.errors.append('Profile button counter is not shown after relogin')
|
||||
self.errors.append('Profile button counter is not shown after re-login')
|
||||
sign_in_view.profile_button.click()
|
||||
profile_view.backup_recovery_phrase()
|
||||
if sign_in_view.profile_button.counter.is_element_displayed():
|
||||
|
|
|
@ -75,6 +75,11 @@ class LogoutButton(BaseButton):
|
|||
super(LogoutButton, self).__init__(driver)
|
||||
self.locator = self.Locator.accessibility_id('log-out-button')
|
||||
|
||||
def click(self):
|
||||
self.scroll_to_element().click()
|
||||
info('Tap on %s' % self.name)
|
||||
return self.navigate()
|
||||
|
||||
|
||||
class LogoutDialog(BaseView):
|
||||
def __init__(self, driver):
|
||||
|
|
Loading…
Reference in New Issue