Add tests for tab-only --pinned

This commit is contained in:
Nicholas Boyd Isacsson 2021-03-18 16:26:35 +01:00
parent 9639980aa5
commit b65dd6b3c3
1 changed files with 30 additions and 0 deletions

View File

@ -1531,6 +1531,36 @@ Feature: Tab management
Then the following tabs should be open:
- data/numbers/2.txt (active) (pinned)
Scenario: Pinned :tab-only --pinned close
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 --pinned close
Then the following tabs should be open:
- data/numbers/1.txt (active) (pinned)
Scenario: Pinned :tab-only --pinned keep
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 --pinned keep
Then the following tabs should be open:
- data/numbers/1.txt (active) (pinned)
- data/numbers/2.txt (pinned)
Scenario: Pinned :tab-only --pinned prompt
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 --pinned prompt
Then "*want to close pinned tabs*" should be logged
Scenario: :tab-pin open url
When I open data/numbers/1.txt
And I run :tab-pin