Skip to content

Commit

Permalink
Increase selenium test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Mar 21, 2018
1 parent 76c4a6b commit 077d9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Test/TestWeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __enter__(self):
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):
Expand Down Expand Up @@ -55,7 +55,7 @@ def testFileSecurity(self, site_url):

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
Expand Down

0 comments on commit 077d9d3

Please sign in to comment.