2010-10-22 20:46:06 +02:00
|
|
|
Feature: Edit a context
|
|
|
|
|
In order to work on todos in a context
|
|
|
|
|
As a Tracks user
|
|
|
|
|
I want to manage todos in a context
|
|
|
|
|
|
|
|
|
|
Background:
|
|
|
|
|
Given the following user record
|
|
|
|
|
| login | password | is_admin |
|
|
|
|
|
| testuser | secret | false |
|
|
|
|
|
And I have logged in as "testuser" with password "secret"
|
|
|
|
|
|
|
|
|
|
@selenium
|
|
|
|
|
Scenario: In place edit of context name
|
|
|
|
|
Given I have a context called "Errands"
|
|
|
|
|
When I visit the context page for "Errands"
|
|
|
|
|
And I edit the context name in place to be "OutAndAbout"
|
|
|
|
|
Then I should see the context name is "OutAndAbout"
|
|
|
|
|
When I go to the contexts page
|
|
|
|
|
Then he should see that a context named "Errands" is not present
|
|
|
|
|
And he should see that a context named "OutAndAbout" is present
|
2010-12-25 16:28:53 +01:00
|
|
|
|
|
|
|
|
Scenario: Editing the context of a todo will remove the todo
|
2011-01-08 09:12:37 +01:00
|
|
|
Given this is a pending scenario
|
2010-12-25 16:28:53 +01:00
|
|
|
|
|
|
|
|
Scenario: Editing the description of a a todo will update that todo
|
2011-01-08 09:12:37 +01:00
|
|
|
Given this is a pending scenario
|
2010-12-25 16:28:53 +01:00
|
|
|
|
|
|
|
|
Scenario: Editing the context of the last todo will remove the todo and show empty message
|
2011-01-08 09:12:37 +01:00
|
|
|
Given this is a pending scenario
|
2011-01-01 18:55:53 +01:00
|
|
|
|
|
|
|
|
Scenario: Adding a todo to a hidden project will not show the todo
|
2011-01-08 09:12:37 +01:00
|
|
|
Given this is a pending scenario
|
2011-01-01 18:55:53 +01:00
|
|
|
|
|
|
|
|
Scenario: Adding a todo to a hidden context will show that todo
|
2011-01-08 09:12:37 +01:00
|
|
|
Given this is a pending scenario
|