mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-29 04:06:11 +01:00
rename features
This commit is contained in:
parent
d7a780ef0c
commit
8f5efff8da
3 changed files with 0 additions and 0 deletions
70
features/context_list.feature
Normal file
70
features/context_list.feature
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
Feature: Manage contexts
|
||||
|
||||
In order to manage my contexts
|
||||
As a Tracks user
|
||||
I want to view, edit, add, or remove contexts
|
||||
|
||||
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
|
||||
|
||||
@selenium
|
||||
Scenario: Delete context from context page should update badge
|
||||
Given I have a context called "@computer"
|
||||
When I go to the contexts page
|
||||
Then the badge should show 1
|
||||
When I delete the context "@computer"
|
||||
Then he should see that a context named "@computer" is not present
|
||||
And the badge should show 0
|
||||
|
||||
@selenium
|
||||
Scenario: Delete context from context page right after an edit
|
||||
Given I have a context called "@computer"
|
||||
When I go to the contexts page
|
||||
And I edit the context to rename it to "@laptop"
|
||||
When I delete the context "@laptop"
|
||||
Then he should see that a context named "@laptop" is not present
|
||||
And the badge should show 0
|
||||
|
||||
@selenium
|
||||
Scenario: Edit context from context twice
|
||||
Given I have a context called "@computer"
|
||||
When I go to the contexts page
|
||||
And I edit the context to rename it to "@laptop"
|
||||
And I edit the context to rename it to "@ipad"
|
||||
Then he should see that a context named "@computer" is not present
|
||||
And he should see that a context named "@laptop" is not present
|
||||
And he should see that a context named "@ipad" is present
|
||||
And the badge should show 1
|
||||
|
||||
@selenium
|
||||
Scenario: Add new context
|
||||
Given I have the following contexts
|
||||
| name | hide |
|
||||
| @ipad | true |
|
||||
| @home | false |
|
||||
When I go to the contexts page
|
||||
And I add a new context "@phone"
|
||||
Then I should see the context "@phone" under "active"
|
||||
|
||||
@selenium
|
||||
Scenario: Add new hidden context
|
||||
Given I have the following contexts
|
||||
| name | hide |
|
||||
| @ipad | true |
|
||||
| @home | false |
|
||||
When I go to the contexts page
|
||||
And I add a new hidden context "@hidden"
|
||||
Then I should see the context "@hidden" under "hidden"
|
||||
Loading…
Add table
Add a link
Reference in a new issue