get destroying of actions working

This commit is contained in:
Reinier Balt 2010-12-20 18:20:37 +01:00
parent e13e946295
commit 33f68df154
18 changed files with 246 additions and 96 deletions

19
features/calendar.feature Normal file
View file

@ -0,0 +1,19 @@
Feature: dependencies
As a Tracks user
In order to keep overview of my due todos
I want to manage due todos in a calendar view
Background:
Given the following user record
| login | password | is_admin |
| testuser | secret | false |
And I have logged in as "testuser" with password "secret"
Scenario: Setting due date of a todo will show it in the calendar
Given this is a pending scenario
Scenario: Clearing the due date of a todo will remove it from the calendar
Given this is a pending scenario
Scenario: Changing due date of a todo will move it in the calendar
Given this is a pending scenario

View file

@ -9,7 +9,7 @@ Feature: dependencies
| testuser | secret | false |
And I have logged in as "testuser" with password "secret"
@selenium
@selenium @wip
Scenario: Adding dependency to dependency
Given I have a project "dependencies" with 3 todos
And "Todo 2" depends on "Todo 1"
@ -35,3 +35,6 @@ Feature: dependencies
Then the dependencies of "test me" should include "test,1, 2,3"
When I edit the dependency of "test me" to '"test,1, 2,3" <"@pc"; "dependencies">,"test,1, 2,3" <"@pc"; "dependencies">'
Then there should not be an error
Scenario: Deleting a predecessor will activate successors
Given this scenario is pending

View file

@ -0,0 +1,55 @@
Feature: Edit a next action from every page
In order to manage a next action
As a Tracks user
I want to to be able to change the next action from every page
Background:
Given the following user record
| login | password | is_admin |
| testuser | secret | false |
And I have logged in as "testuser" with password "secret"
Scenario: I can toggle the star of a todo
Given this is a pending scenario
Scenario: I can delete a todo
Given this is a pending scenario
Scenario: Deleting the last todo in context will hide context
Given this is a pending scenario
Scenario: Deleting the last todo in container will show empty message
Given this is a pending scenario
Scenario: I can mark a todo complete
Given this is a pending scenario
Scenario: I can mark a completed todo active
Given this is a pending scenario
Scenario: I can edit a todo to move it to another context
Given this is a pending scenario
Scenario: I can edit a todo to move it to another project
Given this is a pending scenario
Scenario: I can edit a todo to move it to the tickler
Given this is a pending scenario
Scenario: I can defer a todo
Given this is a pending scenario
Scenario: I can make a project from a todo
Given this is a pending scenario
Scenario: I can show the notes of a todo
Given this is a pending scenario
Scenario: I can tag a todo
Given this is a pending scenario
Scenario: Clicking a tag of a todo will go to that tag page
Given this is a pending scenario
Scenario: I can edit the tags of a todo
Given this is a pending scenario

View file

@ -23,7 +23,7 @@ Feature: Manage users
Then I should be on the manage users page
And I should see "new.user"
@selenium
@selenium @wip
Scenario: Delete account from users page
When I go to the manage users page
And I delete the user "testuser"

View file

@ -68,7 +68,7 @@ Feature: Edit a project
Then the badge should show 2 # "manage me" and "test"
When I try to edit the project name of "manage me" to "test"
Then I should see "Name already exists"
@selenium
Scenario: I can add a note to the project
Given I have a project called "test"
@ -89,4 +89,7 @@ Feature: Edit a project
When I visit the "test" project
And I add a note "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG" to the project
Then I should not see "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG"
And I should see "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
And I should see "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
Scenario: Cancelling editing a project will restore project settings
Given this scenario is pending

View file

@ -25,7 +25,7 @@ Feature: Manage recurring todos
When I select "Daily" recurrence pattern
Then I should see the form for "Daily" recurrence pattern
@selenium
@selenium
Scenario: I can mark a repeat pattern as starred
When I go to the repeating todos page
And I star the pattern "run tests"
@ -54,10 +54,19 @@ Feature: Manage recurring todos
And the state list "active" should be empty
@selenium
Scenario: I can reactivate a repeat pattern
Scenario: I can reactivate a repeat pattern
Given I have a completed repeat pattern "I'm done"
When I go to the repeating todos page
Then the pattern "I'm done" should be in the state list "completed"
When I mark the pattern "I'm done" as active
Then the pattern "I'm done" should be in the state list "active"
And the state list "completed" should be empty
And the state list "completed" should be empty
Scenario: Following the recurring todo link of a todo takes me to the recurring todos page
Given this is a pending scenario
Scenario: Deleting a recurring todo with ending pattern will show message
Given this is a pending scenario
Scenario: Deleting a recurring todo with active pattern will show new todo
Given this is a pending scenario

View file

@ -119,6 +119,24 @@ Feature: Add new next action from every page
| visit | context page for "test context" | see | 2 | 3 |
| visit | tag page for "starred" | not see | 0 | 3 |
Scenario: Adding a todo to another project does not show the todo
Given this is a pending scenario
Scenario: Adding a todo to a hidden project does not show the todo
Given this is a pending scenario
Scenario: Adding a todo with a new context shows the new context
Given this is a pending scenario
Scenario: Adding a todo to a hidden context does not show the todo
Given this is a pending scenario
Scenario: Adding a todo to an empty container hides the empty message
Given this is a pending scenario
Scenario: Adding a dependency to a todo updated the successor
Given this is a pending scenario
@selenium
Scenario: I need to fill in at least one description and a context
When I go to the home page
@ -133,4 +151,4 @@ Feature: Add new next action from every page
"""
Then I should see "You need to submit at least one next action"
Then I should see "You need to submit at least one next action"