From 38bda67adc626db8bae127240f27ffeb556fd03a Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Thu, 24 Mar 2016 10:09:19 +0100 Subject: [PATCH] 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 --- tests/integration/features/tabs.feature | 58 +++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/tests/integration/features/tabs.feature b/tests/integration/features/tabs.feature index f757d15f4..caab7976d 100644 --- a/tests/integration/features/tabs.feature +++ b/tests/integration/features/tabs.feature @@ -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)