Fix test_enter_folder on Windows

This commit is contained in:
Florian Bruhin 2016-05-29 22:46:32 +02:00
parent 86be7ad82c
commit 08f5cfd366

View File

@ -178,7 +178,8 @@ def test_enter_folder_smoke(dir_layout, quteproc):
def test_enter_folder(dir_layout, quteproc, folder):
quteproc.open_url(dir_layout.file_url())
quteproc.click_element(text=folder)
quteproc.wait_for_load_finished_url('file://' + dir_layout.path(folder))
expected_url = urlutils.file_url(dir_layout.path(folder))
quteproc.wait_for_load_finished_url(expected_url)
page = parse(quteproc)
assert page.path == dir_layout.path(folder)
assert page.parent == dir_layout.path()