From e2a6f97c07227b64b53225a2c3fed640dd126592 Mon Sep 17 00:00:00 2001 From: thuck Date: Wed, 16 Nov 2016 07:48:12 +0100 Subject: [PATCH] Initial tests --- tests/end2end/features/tabs.feature | 45 +++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/tests/end2end/features/tabs.feature b/tests/end2end/features/tabs.feature index cede08933..2e8a00790 100644 --- a/tests/end2end/features/tabs.feature +++ b/tests/end2end/features/tabs.feature @@ -5,18 +5,6 @@ Feature: Tab management Given I clean up open tabs And I set tabs -> tabs-are-windows to false - # :tab-pin - - Scenario: :tab-pin - When I open data/numbers/1.txt - And I open data/numbers/2.txt in a new tab - And I open data/numbers/3.txt in a new tab - And I run :tab-pin - Then the following tabs should be open: - - data/numbers/3.txt (active) - - data/numbers/1.txt - - data/numbers/2.txt - # :tab-close Scenario: :tab-close @@ -1009,3 +997,36 @@ Feature: Tab management And I run :tab-close ;; tab-prev Then qutebrowser should quit And no crash should happen + + # :tab-pin + + Scenario: :tab-pin command + When I open data/numbers/1.txt + And I open data/numbers/2.txt in a new tab + And I open data/numbers/3.txt in a new tab + And I run :tab-pin + Then the following tabs should be open: + - data/numbers/3.txt (active) + - data/numbers/1.txt + - data/numbers/2.txt + + Scenario: :tab-pin unpin + When I run :tab-pin + Then the following tabs should be open: + - data/numbers/1.txt + - data/numbers/2.txt + - data/numbers/3.txt (active) + + Scenario: :tab-pin to index 2 + When I run :tab-pin 2 + Then the following tabs should be open: + - data/numbers/1.txt + - data/numbers/3.txt (active) + - data/numbers/2.txt + + Scenario: :tab-pin unpin to index 1 + When I run :tab-pin 1 + Then the following tabs should be open: + - data/numbers/3.txt (active) + - data/numbers/1.txt + - data/numbers/2.txt