mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-14 11:24:22 +01:00
migrate mobile selenium scripts to cucumber
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
0bfb64d0e2
commit
f95cd7fa99
10 changed files with 137 additions and 81 deletions
38
features/mobile_edit_a_todo.feature
Normal file
38
features/mobile_edit_a_todo.feature
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
Feature: Edit a next action from the mobile view
|
||||
In order to manage a next action
|
||||
As a Tracks user
|
||||
I want to to be able to edit a next action
|
||||
|
||||
Background:
|
||||
Given the following user record
|
||||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
And I am working on the mobile interface
|
||||
And I have logged in as "testuser" with password "secret"
|
||||
And I have a context called "@mobile"
|
||||
And I have a project "test project" that has the following todos
|
||||
| context | description |
|
||||
| @mobile | test action |
|
||||
|
||||
Scenario: I can edit an action on the mobile page
|
||||
When I am on the home page
|
||||
Then the badge should show 1
|
||||
Then I should see "test action"
|
||||
When I follow "test action"
|
||||
And I fill in "Description" with "changed action"
|
||||
And I press "Update"
|
||||
Then I should see "changed action"
|
||||
And I should not see "test action"
|
||||
When I follow "changed action"
|
||||
And I check "done"
|
||||
And I press "Update"
|
||||
Then I should not see "changed action"
|
||||
|
||||
Scenario: Navigate from home page
|
||||
move this to separate features when other scenarios are created for these features
|
||||
When I am on the home page
|
||||
Then the badge should show 1
|
||||
When I follow "Tickler"
|
||||
Then the badge should show 0
|
||||
When I follow "Feeds"
|
||||
Then I should see "Last 15 actions"
|
||||
Loading…
Add table
Add a link
Reference in a new issue