From bf8a82db129c6fe2e83832bd4195d45faff638a0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 26 Nov 2015 20:56:36 +0100 Subject: [PATCH] bdd: Add a test for :tab-detach. --- tests/integration/features/tabs.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/integration/features/tabs.feature b/tests/integration/features/tabs.feature index 03e5e2e7e..32301046d 100644 --- a/tests/integration/features/tabs.feature +++ b/tests/integration/features/tabs.feature @@ -491,3 +491,20 @@ Feature: Tab management - url: about:blank - url: http://localhost:*/data/title.html title: Test title + + # :tab-detach + + Scenario: Detaching a tab + Given I have a fresh instance + When I open data/numbers/1.txt + And I open data/numbers/2.txt in a new tab + And I run :tab-detach + Then the session should look like: + windows: + - tabs: + - history: + - url: about:blank + - url: http://localhost:*/data/numbers/1.txt + - tabs: + - history: + - url: http://localhost:*/data/numbers/2.txt