Add check for xss in webview

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2020-06-22 16:54:34 +03:00
parent de7ce0493b
commit 55c606e966
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
1 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,14 @@ class TestBrowsing(SingleDeviceTestCase):
if browsing_view.element_by_text_part('google.com').is_element_displayed():
self.errors.append("URL changed on attempt to redirect to no-content page \n")
browsing_view.cross_icon.click()
daap_view.open_url('https://simpledapp.status.im/webviewtest/webviewtest.html')
browsing_view.element_by_text_part('XSS check').click()
browsing_view.open_in_status_button.click()
if browsing_view.element_by_text_part('simpledapp.status.im').is_element_displayed():
self.errors.append("XSS attemp succedded \n")
browsing_view.ok_button.click()
browsing_view.cross_icon.click()
daap_view.open_url('https://simpledapp.status.im/webviewtest/url-blank.html')
if daap_view.edit_url_editbox.text == '':