fix failing cucumber tests

fix data export view
fix mentions of tag on tag page 
fix autocomplete for tags
This commit is contained in:
Reinier Balt 2012-07-11 15:35:21 +02:00
parent 4227aede6c
commit d6e66fa517
13 changed files with 28 additions and 21 deletions

View file

@ -198,7 +198,11 @@ When /^I add a note "([^"]*)" to the project$/ do |note_body|
page.should have_css "div.widgets button#submit_note"
fill_in "note[body]", :with => note_body
click_button "Add note"
page.should_not have_css "div.widgets button#submit_note"
submit_button = "div.widgets button#submit_note"
elem = find(submit_button)
elem.should_not be_nil # form is hidden
elem.should_not be_visible
end
When /^I click on the first note icon$/ do

View file

@ -173,7 +173,9 @@ When /^I edit the tags of "([^"]*)" to "([^"]*)"$/ do |action_description, tags|
todo.should_not be_nil
open_edit_form_for(todo)
fill_in "todo_tag_list", :with => tags
within "form#form_todo_#{todo.id}" do
fill_in "tag_list", :with => tags
end
submit_edit_todo_form(todo)
end