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

@ -35,15 +35,19 @@ end
When /^I sort the active list alphabetically$/ do
handle_js_confirm do
click_link "Alphabetically"
within "div#list-active-projects-container" do
click_link "Alphabetically"
end
wait_for_ajax
end
get_confirm_text.should == "Are you sure that you want to sort these projects alphabetically? This will replace the existing sort order."
end
When /^I sort the list by number of tasks$/ do
When /^I sort the active list by number of tasks$/ do
handle_js_confirm do
click_link "By number of tasks"
within "div#list-active-projects-container" do
click_link "By number of tasks"
end
wait_for_ajax
end
get_confirm_text.should == "Are you sure that you want to sort these projects by the number of tasks? This will replace the existing sort order."