Add test for using :prompt-fileselect-external on wrong prompt

This commit is contained in:
Florian Bruhin 2022-06-13 14:37:27 +02:00
parent 581b665653
commit fc17602f79
1 changed files with 7 additions and 0 deletions

View File

@ -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