Rewrite tests in open.feature
This commit is contained in:
parent
299d4865d0
commit
97a249d8a6
@ -43,31 +43,18 @@ Feature: Opening pages
|
|||||||
When I run :tab-only
|
When I run :tab-only
|
||||||
And I run :open -t http://localhost:(port)/data/numbers/4.txt
|
And I run :open -t http://localhost:(port)/data/numbers/4.txt
|
||||||
And I wait until data/numbers/4.txt is loaded
|
And I wait until data/numbers/4.txt is loaded
|
||||||
Then the session should look like:
|
Then the following tabs should be open:
|
||||||
windows:
|
- about:blank
|
||||||
- tabs:
|
- data/numbers/4.txt (active)
|
||||||
- history:
|
|
||||||
- url: about:blank
|
|
||||||
- active: true
|
|
||||||
history:
|
|
||||||
- active: true
|
|
||||||
url: http://localhost:*/data/numbers/4.txt
|
|
||||||
|
|
||||||
Scenario: Opening in a new background tab
|
Scenario: Opening in a new background tab
|
||||||
Given I open about:blank
|
Given I open about:blank
|
||||||
When I run :tab-only
|
When I run :tab-only
|
||||||
And I run :open -b http://localhost:(port)/data/numbers/5.txt
|
And I run :open -b http://localhost:(port)/data/numbers/5.txt
|
||||||
And I wait until data/numbers/5.txt is loaded
|
And I wait until data/numbers/5.txt is loaded
|
||||||
Then the session should look like:
|
Then the following tabs should be open:
|
||||||
windows:
|
- about:blank (active)
|
||||||
- tabs:
|
- data/numbers/5.txt
|
||||||
- active: true
|
|
||||||
history:
|
|
||||||
- active: true
|
|
||||||
url: about:blank
|
|
||||||
- history:
|
|
||||||
- active: true
|
|
||||||
url: http://localhost:*/data/numbers/5.txt
|
|
||||||
|
|
||||||
Scenario: :open with count
|
Scenario: :open with count
|
||||||
Given I open about:blank
|
Given I open about:blank
|
||||||
@ -86,11 +73,33 @@ Feature: Opening pages
|
|||||||
- active: true
|
- active: true
|
||||||
url: http://localhost:*/data/numbers/6.txt
|
url: http://localhost:*/data/numbers/6.txt
|
||||||
|
|
||||||
|
Scenario: Opening in a new tab (explicit)
|
||||||
|
Given I open about:blank
|
||||||
|
When I set tabs -> new-tab-position-explicit to right
|
||||||
|
And I set tabs -> new-tab-position to left
|
||||||
|
And I run :tab-only
|
||||||
|
And I run :open -t http://localhost:(port)/data/numbers/7.txt
|
||||||
|
And I wait until data/numbers/7.txt is loaded
|
||||||
|
Then the following tabs should be open:
|
||||||
|
- about:blank
|
||||||
|
- data/numbers/7.txt (active)
|
||||||
|
|
||||||
|
Scenario: Opening in a new tab (implicit)
|
||||||
|
Given I open about:blank
|
||||||
|
When I set tabs -> new-tab-position-explicit to right
|
||||||
|
And I set tabs -> new-tab-position to left
|
||||||
|
And I run :tab-only
|
||||||
|
And I run :open -t -i http://localhost:(port)/data/numbers/8.txt
|
||||||
|
And I wait until data/numbers/8.txt is loaded
|
||||||
|
Then the following tabs should be open:
|
||||||
|
- data/numbers/8.txt (active)
|
||||||
|
- about:blank
|
||||||
|
|
||||||
Scenario: Opening in a new window
|
Scenario: Opening in a new window
|
||||||
Given I open about:blank
|
Given I open about:blank
|
||||||
When I run :tab-only
|
When I run :tab-only
|
||||||
And I run :open -w http://localhost:(port)/data/numbers/7.txt
|
And I run :open -w http://localhost:(port)/data/numbers/9.txt
|
||||||
And I wait until data/numbers/7.txt is loaded
|
And I wait until data/numbers/9.txt is loaded
|
||||||
Then the session should look like:
|
Then the session should look like:
|
||||||
windows:
|
windows:
|
||||||
- tabs:
|
- tabs:
|
||||||
@ -99,46 +108,12 @@ Feature: Opening pages
|
|||||||
- active: true
|
- active: true
|
||||||
url: about:blank
|
url: about:blank
|
||||||
- tabs:
|
- tabs:
|
||||||
- active: true
|
|
||||||
history:
|
|
||||||
- active: true
|
|
||||||
url: http://localhost:*/data/numbers/7.txt
|
|
||||||
|
|
||||||
Scenario: Opening a quickmark
|
|
||||||
When I run :quickmark-add http://localhost:(port)/data/numbers/8.txt quickmarktest
|
|
||||||
And I run :open quickmarktest
|
|
||||||
Then data/numbers/8.txt should be loaded
|
|
||||||
|
|
||||||
Scenario: :open with URL (explicit)
|
|
||||||
Given I open about:blank
|
|
||||||
When I set tabs -> new-tab-position-explicit to right
|
|
||||||
And I set tabs -> new-tab-position to left
|
|
||||||
And I run :tab-only
|
|
||||||
And I run :open -t http://localhost:(port)/data/numbers/9.txt
|
|
||||||
And I wait until data/numbers/9.txt is loaded
|
|
||||||
Then the session should look like:
|
|
||||||
windows:
|
|
||||||
- tabs:
|
|
||||||
- history:
|
|
||||||
- url: about:blank
|
|
||||||
- active: true
|
- active: true
|
||||||
history:
|
history:
|
||||||
- active: true
|
- active: true
|
||||||
url: http://localhost:*/data/numbers/9.txt
|
url: http://localhost:*/data/numbers/9.txt
|
||||||
|
|
||||||
Scenario: :open with URL (implicit)
|
Scenario: Opening a quickmark
|
||||||
Given I open about:blank
|
When I run :quickmark-add http://localhost:(port)/data/numbers/10.txt quickmarktest
|
||||||
When I set tabs -> new-tab-position-explicit to right
|
And I run :open quickmarktest
|
||||||
And I set tabs -> new-tab-position to left
|
Then data/numbers/10.txt should be loaded
|
||||||
And I run :tab-only
|
|
||||||
And I run :open -t -i http://localhost:(port)/data/numbers/10.txt
|
|
||||||
And I wait until data/numbers/10.txt is loaded
|
|
||||||
Then the session should look like:
|
|
||||||
windows:
|
|
||||||
- tabs:
|
|
||||||
- active: true
|
|
||||||
history:
|
|
||||||
- active: true
|
|
||||||
url: http://localhost:*/data/numbers/10.txt
|
|
||||||
- history:
|
|
||||||
- url: about:blank
|
|
||||||
|
Loading…
Reference in New Issue
Block a user