diff --git a/tests/end2end/data/downloads/issue1725.html b/tests/end2end/data/downloads/issue1725.html new file mode 100644 index 000000000..7bc0cace2 --- /dev/null +++ b/tests/end2end/data/downloads/issue1725.html @@ -0,0 +1,13 @@ + + + test case for issue 1725 + + +

Using :prompt-open-download with a file that has a loooooong filename

+

+ + Download me! + +

+ + diff --git a/tests/end2end/features/downloads.feature b/tests/end2end/features/downloads.feature index 882f51f3d..0b3b66856 100644 --- a/tests/end2end/features/downloads.feature +++ b/tests/end2end/features/downloads.feature @@ -196,6 +196,17 @@ Feature: Downloading things from a website. And I run :download-cancel Then "* finished but not successful, not opening!" should be logged + ## https://github.com/The-Compiler/qutebrowser/issues/1725 + + Scenario: Directly open a download with a very long filename + When I set storage -> prompt-download-directory to true + And I open data/downloads/issue1725.html + And I run :hint + And I run :follow-hint a + And I directly open the download + And I wait until the download is finished + Then "Opening * with [*python*]" should be logged + ## completion -> download-path-suggestion Scenario: completion -> download-path-suggestion = path