From fc17602f79f84d2d2f2ae2946b83f008306ec8a6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 13 Jun 2022 14:37:27 +0200 Subject: [PATCH] Add test for using :prompt-fileselect-external on wrong prompt --- tests/end2end/features/downloads.feature | 7 +++++++ 1 file changed, 7 insertions(+) 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