mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-13 02:44:22 +01:00
update cucumber and refactor some of the stories
inspired by the railscasts about cucumber. Also fix a problem with ZenTest on case sensitive platforms
This commit is contained in:
parent
bdddac5020
commit
2073f84cd8
11 changed files with 90 additions and 128 deletions
|
|
@ -1,17 +1,22 @@
|
|||
Feature Show statistics
|
||||
In order to see what I have got done
|
||||
As an user
|
||||
I want see my statistic
|
||||
I want see my statistics
|
||||
|
||||
Background:
|
||||
Given the following user record
|
||||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
|
||||
Scenario: Show statistics with no history
|
||||
Given I am logged in
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have no todos
|
||||
When I go to the statistics page
|
||||
Then I should see "Totals"
|
||||
And I should see " More statistics will appear here once you have added some actions."
|
||||
|
||||
Scenario: Show statistics with history
|
||||
Given I am logged in
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have 5 todos
|
||||
And I have 2 deferred todos
|
||||
And I have 2 completed todos
|
||||
|
|
@ -27,7 +32,7 @@ Feature Show statistics
|
|||
And I should see "Tags"
|
||||
|
||||
Scenario: Click through to see chart of all actions per month
|
||||
Given I am logged in
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have 5 todos
|
||||
When I go to the statistics page
|
||||
And I click on the chart for actions done in the last 12 months
|
||||
|
|
@ -35,7 +40,7 @@ Feature Show statistics
|
|||
And I should see "to return to the statistics page"
|
||||
|
||||
Scenario: Click through to see all incomplete actions of a week
|
||||
Given I am logged in
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have 5 todos
|
||||
And I have 2 deferred todos
|
||||
When I go to the statistics page
|
||||
|
|
@ -47,7 +52,7 @@ Feature Show statistics
|
|||
And I should see "to show the actions from week 0 and further"
|
||||
|
||||
Scenario: Click through to see all incomplete visible actions of a week
|
||||
Given I am logged in
|
||||
Given I have logged in as "testuser" with password "secret"
|
||||
And I have 5 todos
|
||||
And I have 3 deferred todos
|
||||
When I go to the statistics page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue