mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Fix the failing mobile test after the updates
The editing an action of the mobile page scenario failed because of the changes to the layout made by Tim Madden.
This commit is contained in:
parent
99707d7a69
commit
27fb483485
2 changed files with 12 additions and 4 deletions
|
@ -14,7 +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
|
||||
|
@ -29,7 +29,7 @@ Feature: Edit a next action from the mobile view
|
|||
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
|
||||
Then I should see "changed action" in the completed section of the mobile site
|
||||
|
||||
Scenario: Navigate from home page
|
||||
move this to separate features when other scenarios are created for these features
|
||||
|
@ -48,4 +48,4 @@ Feature: Edit a next action from the mobile view
|
|||
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"
|
||||
Then I should see "test action"
|
||||
|
|
|
@ -168,4 +168,12 @@ Then /^the tags of "([^"]*)" should be "([^"]*)"$/ do |todo_description, tag_lis
|
|||
todo.should_not be_nil
|
||||
|
||||
todo.tag_list.should == tag_list
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see "([^"]*)" in the completed section of the mobile site$/ do |desc|
|
||||
todo = @current_user.todos.find_by_description(desc)
|
||||
todo.should_not be_nil
|
||||
|
||||
xpath = "//div[@id='completed_container']//a[@href='/todos/#{todo.id}.m']"
|
||||
response.should have_xpath xpath
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue