diff --git a/tests/end2end/data/userscripts/open_current_url.bat b/tests/end2end/data/userscripts/open_current_url.bat new file mode 100644 index 000000000..60d72d594 --- /dev/null +++ b/tests/end2end/data/userscripts/open_current_url.bat @@ -0,0 +1 @@ +echo open -t %QUTE_URL% >> "%QUTE_FIFO%" \ No newline at end of file diff --git a/tests/end2end/features/spawn.feature b/tests/end2end/features/spawn.feature index 2d43b011b..76ef5620a 100644 --- a/tests/end2end/features/spawn.feature +++ b/tests/end2end/features/spawn.feature @@ -40,3 +40,11 @@ Feature: :spawn Then the following tabs should be open: - about:blank - about:blank (active) + @windows + Scenario: Running :spawn with userscript on Windows + When I open about:blank + And I run :spawn -u (testdata)/userscripts/open_current_url.bat + And I wait until about:blank is loaded + Then the following tabs should be open: + - about:blank + - about:blank (active) \ No newline at end of file