Add :tab-only tests for --force
This commit is contained in:
parent
66dfb1b1c9
commit
3e3f4b4164
@ -1071,18 +1071,18 @@ Feature: Tab management
|
|||||||
- data/numbers/1.txt
|
- data/numbers/1.txt
|
||||||
- data/numbers/2.txt
|
- data/numbers/2.txt
|
||||||
|
|
||||||
Scenario: :tab-pin prompt yes
|
Scenario: Pinned :tab-close prompt yes
|
||||||
When I open data/numbers/1.txt
|
When I open data/numbers/1.txt
|
||||||
And I run :tab-pin
|
And I run :tab-pin
|
||||||
And I open data/numbers/2.txt in a new tab
|
And I open data/numbers/2.txt in a new tab
|
||||||
And I run :tab-pin
|
And I run :tab-pin
|
||||||
And I run :tab-close
|
And I run :tab-close
|
||||||
And I wait for "Asking question *" in the log
|
And I wait for "*want to close a pinned tab*" in the log
|
||||||
And I run :prompt-accept yes
|
And I run :prompt-accept yes
|
||||||
Then the following tabs should be open:
|
Then the following tabs should be open:
|
||||||
- data/numbers/1.txt (active)
|
- data/numbers/1.txt (active)
|
||||||
|
|
||||||
Scenario: :tab-pin prompt no
|
Scenario: Pinned :tab-close prompt no
|
||||||
When I open data/numbers/1.txt
|
When I open data/numbers/1.txt
|
||||||
And I run :tab-pin
|
And I run :tab-pin
|
||||||
And I open data/numbers/2.txt in a new tab
|
And I open data/numbers/2.txt in a new tab
|
||||||
@ -1094,6 +1094,39 @@ Feature: Tab management
|
|||||||
- data/numbers/1.txt
|
- data/numbers/1.txt
|
||||||
- data/numbers/2.txt (active)
|
- data/numbers/2.txt (active)
|
||||||
|
|
||||||
|
Scenario: Pinned :tab-only prompt yes
|
||||||
|
When I open data/numbers/1.txt
|
||||||
|
And I run :tab-pin
|
||||||
|
And I open data/numbers/2.txt in a new tab
|
||||||
|
And I run :tab-pin
|
||||||
|
And I run :tab-next
|
||||||
|
And I run :tab-only
|
||||||
|
And I wait for "*want to close a pinned tab*" in the log
|
||||||
|
And I run :prompt-accept yes
|
||||||
|
Then the following tabs should be open:
|
||||||
|
- data/numbers/1.txt (active)
|
||||||
|
|
||||||
|
Scenario: Pinned :tab-only prompt no
|
||||||
|
When I open data/numbers/1.txt
|
||||||
|
And I run :tab-pin
|
||||||
|
And I open data/numbers/2.txt in a new tab
|
||||||
|
And I run :tab-pin
|
||||||
|
And I run :tab-next
|
||||||
|
And I run :tab-only
|
||||||
|
And I wait for "*want to close a pinned tab*" in the log
|
||||||
|
And I run :prompt-accept no
|
||||||
|
Then the following tabs should be open:
|
||||||
|
- data/numbers/1.txt (active)
|
||||||
|
- data/numbers/2.txt
|
||||||
|
|
||||||
|
Scenario: Pinned :tab-only close all but pinned tab
|
||||||
|
When I open data/numbers/1.txt
|
||||||
|
And I open data/numbers/2.txt in a new tab
|
||||||
|
And I run :tab-pin
|
||||||
|
And I run :tab-only
|
||||||
|
Then the following tabs should be open:
|
||||||
|
- data/numbers/2.txt (active)
|
||||||
|
|
||||||
Scenario: :tab-pin open url
|
Scenario: :tab-pin open url
|
||||||
When I open data/numbers/1.txt
|
When I open data/numbers/1.txt
|
||||||
And I run :tab-pin
|
And I run :tab-pin
|
||||||
|
Loading…
Reference in New Issue
Block a user