Increase selenium test timeouts

This commit is contained in:
shortcutme 2018-03-21 21:40:44 +01:00
parent 76c4a6bb7c
commit 077d9d3918
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class WaitForPageLoad(object):
self.old_page = self.browser.find_element_by_tag_name('html')
def __exit__(self, *args):
WebDriverWait(self.browser, 5).until(staleness_of(self.old_page))
WebDriverWait(self.browser, 10).until(staleness_of(self.old_page))
def wget(url):
@ -55,7 +55,7 @@ class TestWeb:
def testLinkSecurity(self, browser, site_url):
browser.get("%s/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr/test/security.html" % site_url)
WebDriverWait(browser, 5).until(title_is("ZeroHello - ZeroNet"))
WebDriverWait(browser, 10).until(title_is("ZeroHello - ZeroNet"))
assert browser.current_url == "%s/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr/test/security.html" % site_url
# Switch to inner frame