tests: Handle trailing / in wait_for_load_finished.
We actually already added that in16ec035418
, but in9a02dc174d
we accidentally dropped it again.
This commit is contained in:
parent
6a077f5d5a
commit
b201b65669
@ -380,7 +380,7 @@ class QuteProc(testprocess.Process):
|
||||
url = utils.elide(QUrl(url).toDisplayString(QUrl.EncodeUnicode), 100)
|
||||
pattern = re.compile(
|
||||
r"(load status for <qutebrowser\.browser\.webview\.WebView "
|
||||
r"tab_id=\d+ url='{url}'>: LoadStatus\.{load_status}|fetch: "
|
||||
r"tab_id=\d+ url='{url}/?'>: LoadStatus\.{load_status}|fetch: "
|
||||
r"PyQt5\.QtCore\.QUrl\('{url}'\) -> .*)".format(
|
||||
load_status=re.escape(load_status), url=re.escape(url)))
|
||||
self.wait_for(message=pattern, timeout=timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user