From 8d510be72ec40a1eff5c005a002ac6156b36ed2f Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Tue, 9 Feb 2021 10:03:05 +0100 Subject: [PATCH] small nightly fix Signed-off-by: Churikova Tetiana --- test/appium/tests/atomic/dapps_and_browsing/test_browsing.py | 2 +- test/appium/views/base_view.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py index e956a7c758..c884cb5699 100644 --- a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py +++ b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py @@ -154,7 +154,7 @@ class TestBrowsing(SingleDeviceTestCase): } for url in urls: browsing_view = dapp_view.open_url(url) - [browsing_view.dapp_tab_button.click() for _ in range(2)] + browsing_view.dapp_tab_button.double_click() home_view.just_fyi('Close one tab, relogin and check that it is not reappearing') browsing_view.remove_tab(name=urls['bbc.com']) home_view.relogin() diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index 85f5b4b823..22b92c4eda 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -88,9 +88,9 @@ class DappTabButton(TabButton): def click(self, desired_element_text=None): - from views.web_views.base_web_view import BaseWebView + from views.dapps_view import DappsView if desired_element_text is None: - self.click_until_presence_of_element(BaseWebView(self.driver).browser_next_page_button) + self.click_until_presence_of_element(DappsView(self.driver).enter_url_editbox) elif desired_element_text == 'webview': self.find_element().click() else: