tests: Split wait_for_load_finished from open_path.

This commit is contained in:
Florian Bruhin 2016-01-12 22:47:09 +01:00
parent df03099468
commit 25dbf3731b
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ def open_path_given(quteproc, path):
It always opens a new tab, unlike "When I open ..."
"""
quteproc.open_path(path, new_tab=True)
quteproc.wait_for_load_finished(path)
@bdd.given(bdd.parsers.parse("I run {command}"))
@ -116,6 +117,7 @@ def open_path(quteproc, path):
new_window = False
quteproc.open_path(path, new_tab=new_tab, new_window=new_window)
quteproc.wait_for_load_finished(path)
@bdd.when(bdd.parsers.parse("I set {sect} -> {opt} to {value}"))

View File

@ -278,7 +278,6 @@ class QuteProc(testprocess.Process):
self.send_cmd(':open -w ' + url)
else:
self.send_cmd(':open ' + url)
self.wait_for_load_finished(path)
def mark_expected(self, category=None, loglevel=None, message=None):
"""Mark a given logging message as expected."""