updates to tests for changes to mobile interface

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
This commit is contained in:
tim madden 2011-12-20 10:35:21 -06:00
parent c7cd46ee1d
commit e9277676b2
3 changed files with 7 additions and 6 deletions

View file

@ -4,8 +4,10 @@
<%= render :partial => "contexts/mobile_context", :collection => @contexts_to_show -%>
<% end -%>
<% unless @done.nil? -%>
<div id="completed_container">
<h2><%= t('todos.completed_actions') %></h2>
<ul class="c">
<%= render :partial => "todos/mobile_todo", :collection => @done %>
</ul>
</div>
<% end %>

View file

@ -14,7 +14,7 @@ Feature: Add new next action from mobile page
Scenario Outline: The new action form is prefilled with context and project
Given I am on the <page>
When I follow "0-New action"
When I follow "New"
Then the selected project should be "<project>"
And the selected context should be "<context>"
@ -29,7 +29,7 @@ Feature: Add new next action from mobile page
Scenario: I can add a new todo using the mobile interface
Given I am on the home page
Then the badge should show 0
When I follow "0-New action"
When I follow "New"
And I fill in "Description" with "test me"
And I press "Create"
Then I should see "test me"

View file

@ -14,6 +14,7 @@ Feature: Edit a next action from the mobile view
| 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
@ -27,10 +28,8 @@ Feature: Edit a next action from the mobile view
Then I should see "changed action"
And I should not see "test action"
When I follow "changed action"
And I press "Edit this action"
And I check "done"
And I press "Update"
Then I should not see "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