mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
Updated mobile_add_action.feature with new navigation text Updated modile_edit_a_todo.feature to not look for removed 'done' checkbox in the edit form, but to use the previously created "mark complete" button. Added completed_container to mobile_actions so the test could find the completed todo that is no longer not visible
51 lines
No EOL
1.8 KiB
Gherkin
51 lines
No EOL
1.8 KiB
Gherkin
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 |
|
|
|
|
@selenium
|
|
Scenario: I can edit an action on the mobile page
|
|
When I am on the home page
|
|
Then the badge should show 1
|
|
And I should see "test action"
|
|
When I follow "test action"
|
|
Then I should see "Actions"
|
|
When I press "Edit this action"
|
|
Then I should see "Description"
|
|
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 press "Mark complete"
|
|
Then I should see "changed action" in the completed container
|
|
|
|
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"
|
|
|
|
Scenario: I can defer an action on the mobile page
|
|
When I am on the home page
|
|
Then the badge should show 1
|
|
And I should see "test action"
|
|
When I follow "test action"
|
|
And I press "Defer 1 day"
|
|
Then I should see "There are no incomplete actions"
|
|
When I follow "Tickler"
|
|
Then I should see "test action" |