finish updating cucumber scenario's to the stricter capybara

This commit is contained in:
Reinier Balt 2013-01-01 17:38:59 +01:00
parent ee3f8a3f8b
commit 796685072d
11 changed files with 55 additions and 34 deletions

View file

@ -14,9 +14,11 @@ end
When /^I edit the context to rename it to "([^\"]*)"$/ do |new_name|
find("a#link_edit_context_#{@context.id}").click
page.should have_css("button#submit_context_#{@context.id}", :visible=>true)
fill_in "context_name", :with => new_name
click_button "submit_context_#{@context.id}"
within "div.edit-form" do
fill_in "context_name", :with => new_name
click_button "submit_context_#{@context.id}"
end
# wait for the form to go away
page.should have_css("a#link_edit_context_#{@context.id}", :visible=> true)