Add background-tabs and new-tab-position tests

Using hints to select and open the link.
Not sure if there are better ways.

Issue-Link: https://github.com/The-Compiler/qutebrowser/issues/999
This commit is contained in:
Philipp Hansch 2016-03-24 10:09:19 +01:00
parent 504332cd6e
commit 38bda67adc

View File

@ -644,3 +644,61 @@ Feature: Tab management
And I run :tab-only
And I run :tab-close
Then qutebrowser should quit
# tab settings
Scenario: opening links with tabs->background-tabs true
When I set tabs -> background-tabs to true
And I open data/hints/link.html
And I run :hint all tab
And I run :follow-hint a
Then the following tabs should be open:
- data/hints/link.html (active)
- data/hello.txt
Scenario: opening tab with tabs->new-tab-position left
When I set tabs -> new-tab-position to left
And I set tabs -> background-tabs to false
And I open about:blank
And I open data/hints/link.html in a new tab
And I run :hint all tab
And I run :follow-hint a
Then the following tabs should be open:
- about:blank
- data/hello.txt (active)
- data/hints/link.html
Scenario: opening tab with tabs->new-tab-position right
When I set tabs -> new-tab-position to right
And I set tabs -> background-tabs to false
And I open about:blank
And I open data/hints/link.html in a new tab
And I run :hint all tab
And I run :follow-hint a
Then the following tabs should be open:
- about:blank
- data/hints/link.html
- data/hello.txt (active)
Scenario: opening tab with tabs->new-tab-position first
When I set tabs -> new-tab-position to first
And I open about:blank
And I open data/hints/link.html in a new tab
And I run :hint all tab
And I run :follow-hint a
Then the following tabs should be open:
- data/hello.txt (active)
- about:blank
- data/hints/link.html
Scenario: opening tab with tabs->new-tab-position last
When I set tabs -> new-tab-position to last
And I open data/hints/link.html
And I open about:blank in a new tab
And I run :tab-focus last
And I run :hint all tab
And I run :follow-hint a
Then the following tabs should be open:
- data/hints/link.html
- about:blank
- data/hello.txt (active)