mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-08 05:32:37 +01:00
finish updating cucumber scenario's to the stricter capybara
This commit is contained in:
parent
ee3f8a3f8b
commit
796685072d
11 changed files with 55 additions and 34 deletions
|
|
@ -97,7 +97,9 @@ When /^I try to edit the description of "([^"]*)" to "([^"]*)"$/ do |action_desc
|
|||
todo.should_not be_nil
|
||||
|
||||
open_edit_form_for(todo)
|
||||
fill_in "todo_description", :with => new_description
|
||||
within "form.edit_todo_form" do
|
||||
fill_in "todo_description", :with => new_description
|
||||
end
|
||||
submit_button_xpath = "//div[@id='edit_todo_#{todo.id}']//button[@id='submit_todo_#{todo.id}']"
|
||||
page.find(:xpath, submit_button_xpath).click
|
||||
wait_for_ajax
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue