Update refresh webview test
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
40a26f4e10
commit
9e0b8e76cf
|
@ -60,6 +60,7 @@ connection_is_secure_text = "Connection is secure. Make sure you really trust th
|
|||
"before signing transactions or entering personal data."
|
||||
recorded_error = "You have to give permission to send audio messages"
|
||||
|
||||
test_dapp_web_url = "status-im.github.io/dapp"
|
||||
test_dapp_url = 'simpledapp.eth'
|
||||
test_dapp_name = 'simpledapp.eth'
|
||||
|
||||
|
|
|
@ -205,11 +205,15 @@ class TestBrowsing(SingleDeviceTestCase):
|
|||
def test_refresh_button_browsing_app_webview(self):
|
||||
sign_in_view = SignInView(self.driver)
|
||||
home_view = sign_in_view.create_user()
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
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')
|
||||
daap_view = home_view.dapp_tab_button.click()
|
||||
browsing_view = daap_view.open_url('app.uniswap.org')
|
||||
browsing_view.allow_button.click()
|
||||
browsing_view.find_full_text('Select a token').click()
|
||||
browsing_view.find_text_part("Token Name")
|
||||
browsing_view.browser_refresh_page_button.click()
|
||||
if browsing_view.element_by_text_part("Token Name").is_element_displayed():
|
||||
self.driver.fail("Page failed to be refreshed")
|
||||
|
||||
|
||||
@marks.testrail_id(5456)
|
||||
@marks.medium
|
||||
|
|
|
@ -244,9 +244,9 @@ class HomeView(BaseView):
|
|||
self.confirm_until_presence_of_element(chat_view.chat_message_input)
|
||||
return chat_view
|
||||
|
||||
def open_status_test_dapp(self, allow_all=True):
|
||||
def open_status_test_dapp(self, url=test_dapp_url, allow_all=True):
|
||||
dapp_view = self.dapp_tab_button.click()
|
||||
dapp_view.open_url(test_dapp_url)
|
||||
dapp_view.open_url(url)
|
||||
status_test_dapp = dapp_view.get_status_test_dapp_view()
|
||||
status_test_dapp.allow_button.wait_for_element(20)
|
||||
if allow_all:
|
||||
|
|
Loading…
Reference in New Issue