migrate calendar feature

This commit is contained in:
Reinier Balt 2012-01-30 03:42:47 +01:00
parent 75f2afc2e1
commit de309c8ee8
14 changed files with 87 additions and 224 deletions

View file

@ -117,7 +117,12 @@ When /^I clear the due date of "([^"]*)"$/ do |action_description|
todo = @current_user.todos.find_by_description(action_description)
todo.should_not be_nil
open_edit_form_for(todo)
selenium.click("//div[@id='edit_todo_#{todo.id}']//a[@id='due_x_todo_#{todo.id}']/img", :wait_for => :ajax, :javascript_framework => :jquery)
within "div#edit_todo_#{todo.id}" do
find("a#due_x_todo_#{todo.id}").click
wait_until do
find("input#due_todo_#{todo.id}").value == ""
end
end
submit_edit_todo_form(todo)
end