From edb197b02809b79ac2302b27cc8f6c7b80e4078e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 29 Mar 2017 08:27:38 +0200 Subject: [PATCH] Make waiting for download prompt more robust --- tests/end2end/features/test_downloads_bdd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/end2end/features/test_downloads_bdd.py b/tests/end2end/features/test_downloads_bdd.py index cb0388ea4..616c3cb14 100644 --- a/tests/end2end/features/test_downloads_bdd.py +++ b/tests/end2end/features/test_downloads_bdd.py @@ -68,6 +68,8 @@ def wait_for_download_finished_name(quteproc, name): def wait_for_download_prompt(tmpdir, quteproc, path): full_path = path.replace('(tmpdir)', str(tmpdir)).replace('/', os.sep) quteproc.wait_for(message=PROMPT_MSG.format(full_path)) + quteproc.wait_for(message="Entering mode KeyMode.prompt " + "(reason: question asked)") @bdd.when("I download an SSL page")