From 7608805c9a4a6a76123f7e3f91eaaaf51beb4fa2 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 6 Jul 2016 23:16:38 +0200 Subject: [PATCH] tests: adjust tests for new download mode Now the prompt is shown with PromptMode.download instead of PromptMode.text, which we need to change in the tests. --- tests/end2end/features/downloads.feature | 4 ++-- tests/end2end/features/misc.feature | 2 +- tests/end2end/features/test_downloads_bdd.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/end2end/features/downloads.feature b/tests/end2end/features/downloads.feature index 7016f3284..f15466053 100644 --- a/tests/end2end/features/downloads.feature +++ b/tests/end2end/features/downloads.feature @@ -30,7 +30,7 @@ Feature: Downloading things from a website. And I open data/downloads/issue1243.html And I run :hint links download And I run :follow-hint a - And I wait for "Asking question text='Save file to:'>, *" in the log + And I wait for "Asking question text='Save file to:'>, *" in the log And I run :leave-mode Then no crash should happen @@ -40,7 +40,7 @@ Feature: Downloading things from a website. And I open data/downloads/issue1214.html And I run :hint links download And I run :follow-hint a - And I wait for "Asking question text='Save file to:'>, *" in the log + And I wait for "Asking question text='Save file to:'>, *" in the log And I run :leave-mode Then no crash should happen diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index 08befc45a..b11ff5975 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -312,7 +312,7 @@ Feature: Various utility commands. And I open data/misc/test.pdf And I wait for "[qute://pdfjs/*] PDF * (PDF.js: *)" in the log And I run :jseval document.getElementById("download").click() - And I wait for "Asking question text='Save file to:'>, *" in the log + And I wait for "Asking question text='Save file to:'>, *" in the log And I run :leave-mode Then no crash should happen diff --git a/tests/end2end/features/test_downloads_bdd.py b/tests/end2end/features/test_downloads_bdd.py index dc5a478eb..06271cb5c 100644 --- a/tests/end2end/features/test_downloads_bdd.py +++ b/tests/end2end/features/test_downloads_bdd.py @@ -64,7 +64,7 @@ def download_should_exist(filename, tmpdir): def download_prompt(tmpdir, quteproc, path): full_path = path.replace('{downloaddir}', str(tmpdir)).replace('/', os.sep) msg = ("Asking question " + "default={full_path!r} mode= " "text='Save file to:'>, *".format(full_path=full_path)) quteproc.wait_for(message=msg) quteproc.send_cmd(':leave-mode')