From 41adafdec49262ec24c4d5b8a854d1eccf235500 Mon Sep 17 00:00:00 2001 From: thuck Date: Wed, 16 Nov 2016 08:19:21 +0100 Subject: [PATCH] Fix initial tests --- tests/end2end/features/conftest.py | 2 +- tests/end2end/features/tabs.feature | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index 7dd42c2d0..517d77144 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -160,7 +160,7 @@ def clean_open_tabs(quteproc): quteproc.set_setting('tabs', 'last-close', 'blank') quteproc.send_cmd(':window-only') quteproc.send_cmd(':tab-only') - quteproc.send_cmd(':tab-close') + quteproc.send_cmd(':tab-close --force') @bdd.given('pdfjs is available') diff --git a/tests/end2end/features/tabs.feature b/tests/end2end/features/tabs.feature index 2e8a00790..546eae425 100644 --- a/tests/end2end/features/tabs.feature +++ b/tests/end2end/features/tabs.feature @@ -1011,21 +1011,32 @@ Feature: Tab management - data/numbers/2.txt Scenario: :tab-pin unpin - When I run :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 + And 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 + 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 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 + 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 + And I run :tab-pin 1 Then the following tabs should be open: - data/numbers/3.txt (active) - data/numbers/1.txt