Deleting the last todo should hide a context

This commit is contained in:
Eric Allen 2009-10-30 15:20:06 -04:00
parent 93c6151ca7
commit c1dfeaf0f2
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
setup :fixtures => :all
login :as => 'admin'
open "/"
wait_for_element_present '//div[@id="line_todo_5"]//img[@alt="Delete"]/..'
click '//div[@id="line_todo_5"]//img[@alt="Delete"]/..'
assert_confirmation "Are you sure that you want to delete the action 'Construct time dilation device'?"
wait_for_not_visible "c5"