[TESTS] Added browser refresh button test

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2018-07-22 16:38:01 +03:00
parent f959f6629d
commit 14be2c0d5e
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
2 changed files with 21 additions and 0 deletions

View File

@ -95,3 +95,17 @@ class TestBrowsing(SingleDeviceTestCase):
browsing_view.browser_next_page_button.click()
browsing_view.find_text_part('Избранная статья')
browsing_view.back_to_home_button.click()
@marks.testrail_id(3783)
@marks.smoke_1
def test_refresh_button_browsing_app_webview(self):
sign_in_view = SignInView(self.driver)
sign_in_view.create_user()
status_test_dapp = sign_in_view.open_status_test_dapp()
status_test_dapp.wait_for_d_aap_to_load()
status_test_dapp.transactions_button.click()
status_test_dapp.find_full_text('Sign message')
status_test_dapp.browser_refresh_page_button.click()
status_test_dapp.find_full_text('defaultAccount')

View File

@ -34,6 +34,12 @@ class BrowserNextPageButton(BaseButton):
self.locator = self.Locator.accessibility_id('next-page-button')
class BrowserRefreshPageButton(BaseButton):
def __init__(self, driver):
super(BrowserRefreshPageButton, self).__init__(driver)
self.locator = self.Locator.xpath_selector('(//android.view.ViewGroup[@content-desc="icon"])[4]')
class WebViewBrowserButton(BaseButton):
def __init__(self, driver):
super(WebViewBrowserButton, self).__init__(driver)
@ -73,6 +79,7 @@ class BaseWebView(BaseView):
self.web_view_browser = WebViewBrowserButton(self.driver)
self.always_button = AlwaysButton(self.driver)
self.browser_cross_icon = BrowserCrossIcon(self.driver)
self.browser_refresh_page_button = BrowserRefreshPageButton(self.driver)
def wait_for_d_aap_to_load(self, wait_time=35):
counter = 0