tests: Make wait for loading work with downloads.
This commit is contained in:
parent
8aa29a2ba2
commit
64730f566f
@ -209,9 +209,10 @@ class QuteProc(testprocess.Process):
|
|||||||
"""Wait until any tab has finished loading."""
|
"""Wait until any tab has finished loading."""
|
||||||
url = 'http://localhost:{}/{}'.format(self._httpbin.port, path)
|
url = 'http://localhost:{}/{}'.format(self._httpbin.port, path)
|
||||||
pattern = re.compile(
|
pattern = re.compile(
|
||||||
r"load status for <qutebrowser.browser.webview.WebView tab_id=\d+ "
|
r"(load status for <qutebrowser.browser.webview.WebView "
|
||||||
r"url='{}'>: LoadStatus.success".format(url))
|
r"tab_id=\d+ url='{url}'>: LoadStatus.success|fetch: "
|
||||||
self.wait_for(category='webview', message=pattern, timeout=timeout)
|
r"PyQt5.QtCore.QUrl\('{url}'\) -> .*)".format(url=re.escape(url)))
|
||||||
|
self.wait_for(message=pattern, timeout=timeout)
|
||||||
|
|
||||||
def get_session(self):
|
def get_session(self):
|
||||||
"""Save the session and get the parsed session data."""
|
"""Save the session and get the parsed session data."""
|
||||||
|
Loading…
Reference in New Issue
Block a user