bsag / tracks

Tracks is a GTD(TM) web application, built with Ruby on Rails

This URL has Read+Write access

lrbalt (author)
Sun Jul 05 02:34:19 -0700 2009
commit  2497ea9fea1a7528adb2b41f450f6dfb78a47a8c
tree    d697e65561f07ee3e05c636e95f642160b4b951f
parent  8a0da54808b4abdc158d67b0bdd74e201aa1571f
tracks / features / show_statistics.feature
100644 65 lines (58 sloc) 2.536 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Feature Show statistics
  In order to see what I have got done
  As an user
  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 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 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
    When I go to the statistics page
    And I should see "You have 7 incomplete actions"
    And I should see "of which 2 are deferred actions"
    And I should see "you have a total of 9 actions"
    And I should see "2 of these are completed"
    Then I should see "Totals"
    And I should see "Actions"
    And I should see "Contexts"
    And I should see "Projects"
    And I should see "Tags"
    
  Scenario: Click through to see chart of all actions per month
    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
    Then I should see a chart
    And I should see "to return to the statistics page"
    
  Scenario: Click through to see all incomplete actions of a week
    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
    And I click on the chart for running time of all incomplete actions
    Then I should see a chart
    And I should see "Actions selected from week"
    And I should see 7 todos
    And I should see "to return to the statistics page"
    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 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
    And I click on the chart for running time of all incomplete actions
    Then I should see a chart
    And I should see "Actions selected from week"
    And I should see 5 todos
    And I should see "to return to the statistics page"
    And I should see "to show the actions from week 0 and further"