mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-08 02:08:50 +01:00
migrate login rjs to erb and reformat features
This commit is contained in:
parent
05b3b7cebc
commit
520e45fe6b
17 changed files with 137 additions and 152 deletions
|
|
@ -1,5 +1,4 @@
|
|||
Feature: Manage the list of contexts
|
||||
|
||||
In order to keep track and manage all of my contexts
|
||||
As a Tracks user
|
||||
I want to manage my list of contexts
|
||||
|
|
@ -9,13 +8,13 @@ Feature: Manage the list of contexts
|
|||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
And I have logged in as "testuser" with password "secret"
|
||||
|
||||
|
||||
@selenium
|
||||
Scenario: Delete context from context page should update badge
|
||||
Given I have a context called "@computer"
|
||||
And I have a context called "@ipad"
|
||||
When I go to the contexts page
|
||||
Then the badge should show 2
|
||||
Then the badge should show 2
|
||||
And the context list badge for active contexts should show 2
|
||||
When I delete the context "@computer"
|
||||
Then he should see that a context named "@computer" is not present
|
||||
|
|
@ -59,20 +58,20 @@ Feature: Manage the list of contexts
|
|||
@selenium
|
||||
Scenario Outline: Add a new context with state
|
||||
Given I have the following contexts
|
||||
| name | hide |
|
||||
| @ipad | true |
|
||||
| @home | false |
|
||||
| name | hide |
|
||||
| @ipad | true |
|
||||
| @home | false |
|
||||
When I go to the contexts page
|
||||
And I add a new <state> context "<name>"
|
||||
Then I should see the context "<name>" under "<state>"
|
||||
|
||||
Examples:
|
||||
| state | name |
|
||||
| active | @phone |
|
||||
| hidden | @hidden|
|
||||
| state | name |
|
||||
| active | @phone |
|
||||
| hidden | @hidden |
|
||||
|
||||
@selenium
|
||||
Scenario: Cannot add a context with comma in the name
|
||||
When I go to the contexts page
|
||||
And I add a new active context "foo, bar"
|
||||
Then I should see "Name cannot contain the comma"
|
||||
Then I should see "Name cannot contain the comma"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue