summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-06-13 14:37:27 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-06-13 14:37:27 +0200
commitfc17602f79f84d2d2f2ae2946b83f008306ec8a6 (patch)
tree4d7149c1d980d8282383231e37ecfaba4fee61bc
parent581b665653050124bb2d5284e6126b728263b462 (diff)
downloadqutebrowser-fc17602f79f84d2d2f2ae2946b83f008306ec8a6.tar.gz
qutebrowser-fc17602f79f84d2d2f2ae2946b83f008306ec8a6.zip
Add test for using :prompt-fileselect-external on wrong prompt
-rw-r--r--tests/end2end/features/downloads.feature7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/end2end/features/downloads.feature b/tests/end2end/features/downloads.feature
index e8e3d7238..a1af893b6 100644
--- a/tests/end2end/features/downloads.feature
+++ b/tests/end2end/features/downloads.feature
@@ -706,3 +706,10 @@ Feature: Downloading things from a website.
And I run :prompt-fileselect-external
Then the message "No folder chosen." should be shown
And "No prompts left, hiding prompt container." should not be logged
+
+ Scenario: Using :prompt-fileselect-external with other prompt
+ When I open data/prompt/jsprompt.html
+ And I run :click-element id button
+ And I wait for "Asking question *" in the log
+ And I run :prompt-fileselect-external
+ Then the error "Can only launch external fileselect for FilenamePrompt, not LineEditPrompt" should be shown