Stabilize test in invoke.feature

When we use about:blank, the wait doesn't actually wait (because we
already did open about:blank earlier), so we need to use another URL or
this test will be flaky.
This commit is contained in:
Florian Bruhin 2016-09-06 14:04:54 +02:00
parent 2e49368b51
commit f6392d730f

View File

@ -93,10 +93,10 @@ Feature: Invoking a new process
Scenario: Opening a new qutebrowser instance with no parameters Scenario: Opening a new qutebrowser instance with no parameters
When I set general -> new-instance-open-target to tab When I set general -> new-instance-open-target to tab
And I set general -> startpage to about:blank And I set general -> startpage to http://localhost:(port)/data/hello.txt
And I open data/title.html And I open data/title.html
And I spawn a new window And I spawn a new window
And I wait until about:blank is loaded And I wait until data/hello.txt is loaded
Then the session should look like: Then the session should look like:
windows: windows:
- tabs: - tabs:
@ -105,4 +105,4 @@ Feature: Invoking a new process
- url: http://localhost:*/data/title.html - url: http://localhost:*/data/title.html
- tabs: - tabs:
- history: - history:
- url: about:blank - url: http://localhost:*/data/hello.txt