bdd: Reorganize numbered test files.

This commit is contained in:
Florian Bruhin 2015-11-25 18:02:14 +01:00
parent eed2584e3f
commit 816d62bca5
13 changed files with 26 additions and 30 deletions

View File

@ -1 +0,0 @@
one

View File

@ -1 +0,0 @@
two

View File

@ -1 +0,0 @@
three

View File

@ -1 +0,0 @@
four

View File

@ -29,26 +29,26 @@ Feature: Using :navigate
Then data/navigate/next.html should be loaded Then data/navigate/next.html should be loaded
Scenario: Navigating to previous page without links Scenario: Navigating to previous page without links
When I open data/navigate/1.txt When I open data/numbers/1.txt
And I run :navigate prev And I run :navigate prev
Then the error "No prev links found!" should be shown. Then the error "No prev links found!" should be shown.
Scenario: Navigating to next page without links Scenario: Navigating to next page without links
When I open data/navigate/1.txt When I open data/numbers/1.txt
And I run :navigate next And I run :navigate next
Then the error "No forward links found!" should be shown. Then the error "No forward links found!" should be shown.
# increment/decrement # increment/decrement
Scenario: Incrementing number in URL Scenario: Incrementing number in URL
When I open data/navigate/1.txt When I open data/numbers/1.txt
And I run :navigate increment And I run :navigate increment
Then data/navigate/2.txt should be loaded Then data/numbers/2.txt should be loaded
Scenario: Decrementing number in URL Scenario: Decrementing number in URL
When I open data/navigate/4.txt When I open data/numbers/4.txt
And I run :navigate decrement And I run :navigate decrement
Then data/navigate/3.txt should be loaded Then data/numbers/3.txt should be loaded
Scenario: Decrementing with no number in URL Scenario: Decrementing with no number in URL
When I open data/navigate When I open data/navigate
@ -62,6 +62,6 @@ Feature: Using :navigate
Scenario: Setting url-incdec-segments Scenario: Setting url-incdec-segments
When I set general -> url-incdec-segments to anchor When I set general -> url-incdec-segments to anchor
And I open data/navigate/1.txt And I open data/numbers/1.txt
And I run :navigate increment And I run :navigate increment
Then the error "No number found in URL!" should be shown. Then the error "No number found in URL!" should be shown.

View File

@ -2,8 +2,8 @@ Feature: Opening pages
Scenario: :open with URL Scenario: :open with URL
Given I open about:blank Given I open about:blank
When I run :open http://localhost:(port)/data/open/1.txt When I run :open http://localhost:(port)/data/numbers/1.txt
And I wait until data/open/1.txt is loaded And I wait until data/numbers/1.txt is loaded
And I run :tab-only And I run :tab-only
Then the session should look like: Then the session should look like:
windows: windows:
@ -12,16 +12,16 @@ Feature: Opening pages
history: history:
- url: about:blank - url: about:blank
- active: true - active: true
url: http://localhost:*/data/open/1.txt url: http://localhost:*/data/numbers/1.txt
Scenario: :open without URL and no -t/-b/-w Scenario: :open without URL and no -t/-b/-w
When I run :open When I run :open
Then the error "No URL given, but -t/-b/-w is not set!" should be shown. Then the error "No URL given, but -t/-b/-w is not set!" should be shown.
Scenario: :open without URL and -t Scenario: :open without URL and -t
When I set general -> default-page to http://localhost:(port)/data/open/2.txt When I set general -> default-page to http://localhost:(port)/data/numbers/2.txt
And I run :open -t And I run :open -t
Then data/open/2.txt should be loaded Then data/numbers/2.txt should be loaded
Scenario: :open with invalid URL Scenario: :open with invalid URL
When I set general -> auto-search to false When I set general -> auto-search to false
@ -34,15 +34,15 @@ Feature: Opening pages
Scenario: Searching with :open Scenario: Searching with :open
When I set general -> auto-search to naive When I set general -> auto-search to naive
And I set searchengines -> DEFAULT to http://localhost:(port)/data/open/{}.txt And I set searchengines -> DEFAULT to http://localhost:(port)/data/numbers/{}.txt
And I run :open 3 And I run :open 3
Then data/open/3.txt should be loaded Then data/numbers/3.txt should be loaded
Scenario: Opening in a new tab Scenario: Opening in a new 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 -t http://localhost:(port)/data/open/4.txt And I run :open -t http://localhost:(port)/data/numbers/4.txt
And I wait until data/open/4.txt is loaded And I wait until data/numbers/4.txt is loaded
Then the session should look like: Then the session should look like:
windows: windows:
- tabs: - tabs:
@ -51,13 +51,13 @@ Feature: Opening pages
- active: true - active: true
history: history:
- active: true - active: true
url: http://localhost:*/data/open/4.txt 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/open/5.txt And I run :open -b http://localhost:(port)/data/numbers/5.txt
And I wait until data/open/5.txt is loaded And I wait until data/numbers/5.txt is loaded
Then the session should look like: Then the session should look like:
windows: windows:
- tabs: - tabs:
@ -67,14 +67,14 @@ Feature: Opening pages
url: about:blank url: about:blank
- history: - history:
- active: true - active: true
url: http://localhost:*/data/open/5.txt 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
When I run :tab-only When I run :tab-only
And I open about:blank in a new tab And I open about:blank in a new tab
And I run :open http://localhost:(port)/data/open/6.txt with count 2 And I run :open http://localhost:(port)/data/numbers/6.txt with count 2
And I wait until data/open/6.txt is loaded And I wait until data/numbers/6.txt is loaded
Then the session should look like: Then the session should look like:
windows: windows:
- tabs: - tabs:
@ -84,13 +84,13 @@ Feature: Opening pages
history: history:
- url: about:blank - url: about:blank
- active: true - active: true
url: http://localhost:*/data/open/6.txt url: http://localhost:*/data/numbers/6.txt
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/open/7.txt And I run :open -w http://localhost:(port)/data/numbers/7.txt
And I wait until data/open/7.txt is loaded And I wait until data/numbers/7.txt is loaded
Then the session should look like: Then the session should look like:
windows: windows:
- tabs: - tabs:
@ -102,4 +102,4 @@ Feature: Opening pages
- active: true - active: true
history: history:
- active: true - active: true
url: http://localhost:*/data/open/7.txt url: http://localhost:*/data/numbers/7.txt