From a24bcd424330c68de2cd5fde97352d8f18046613 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 20 Dec 2016 15:57:00 +0100 Subject: [PATCH] add a test for remembering the temp download dir --- tests/end2end/features/downloads.feature | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/end2end/features/downloads.feature b/tests/end2end/features/downloads.feature index b6a38da29..85917864e 100644 --- a/tests/end2end/features/downloads.feature +++ b/tests/end2end/features/downloads.feature @@ -424,6 +424,20 @@ Feature: Downloading things from a website. And I open data/downloads/download2.bin without waiting Then the download prompt should be shown with "(tmpdir)/download2.bin" + # https://github.com/The-Compiler/qutebrowser/issues/2173 + + Scenario: Remembering the temporary download directory (issue 2173) + When I set storage -> prompt-download-directory to true + And I set storage -> remember-download-directory to true + And I open data/downloads/download.bin without waiting + And I wait for the download prompt for "*" + And I run :prompt-accept (tmpdir) + And I open data/downloads/download.bin without waiting + And I wait for the download prompt for "*" + And I directly open the download + And I open data/downloads/download.bin without waiting + Then the download prompt should be shown with "(tmpdir)/download.bin" + # Overwriting files Scenario: Not overwriting an existing file