tests: Stabilize test_open_with_ascii_locale

The loaded page caused a 404, but we didn't wait for the new error logging
message. Most of the time that went well because we quit before it could be
logged, but not always.

See https://github.com/qutebrowser/qutebrowser/issues/5390#issuecomment-629268747
This commit is contained in:
Florian Bruhin 2020-06-25 13:41:38 +02:00
parent 76e8debbc0
commit cb383c6f9f
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ def test_open_with_ascii_locale(request, server, tmpdir, quteproc_new, url):
quteproc_new.wait_for(message="load status for <* tab_id=* "
"url='*/f%C3%B6%C3%B6.html'>: LoadStatus.error")
if request.config.webengine:
line = quteproc_new.wait_for(message='Load error: ERR_FILE_NOT_FOUND')
line.expected = True
@pytest.mark.linux
@ascii_locale