small nightly fix

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2021-02-09 10:03:05 +01:00
parent 72d592a5a6
commit 8d510be72e
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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: