qutebrowser/tests/integration/features/javascript.feature
Florian Bruhin be2c0e30b6 bdd: Stabilize "Closing a JS window twice" test.
After pressing the button to open a window, we have to wait until it's loaded
before continuing, otherwise the test is flaky:
http://www.qutebrowser.org/testresults/osx/1295.html

We can't simply wait with "wait until about:blank is loaded" as that page is
already loaded earlier.
2016-01-24 18:47:26 +01:00

17 lines
567 B
Gherkin

Feature: Javascript stuff
Integration with javascript.
# https://github.com/The-Compiler/qutebrowser/issues/906
Scenario: Closing a JS window twice (issue 906)
When I open about:blank
And I open data/javascript/issue906.html in a new tab
And I run :hint
And I run :follow-hint a
And I wait for "Changing title for idx 2 to 'about:blank'" in the log
And I run :tab-focus 2
And I run :hint
And I run :follow-hint s
Then "Requested to close * which does not exist!" should be logged