Add basic test for spawning userscripts
This commit is contained in:
parent
69da5d7545
commit
0083538491
3
tests/integration/data/userscripts/open_current_url
Executable file
3
tests/integration/data/userscripts/open_current_url
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "open -t $QUTE_URL" >> "$QUTE_FIFO"
|
@ -15,3 +15,10 @@ Feature: :spawn
|
||||
Scenario: Running :spawn with url variable
|
||||
When I run :spawn echo {url}
|
||||
Then "Executing echo with args ['about:blank'], userscript=False" should be logged
|
||||
|
||||
Scenario: Running :spawn with userscript
|
||||
When I run :spawn --userscript open_current_url
|
||||
And I wait until about:blank is loaded
|
||||
Then the following tabs should be open:
|
||||
- about:blank
|
||||
- about:blank (active)
|
||||
|
Loading…
Reference in New Issue
Block a user