Sped up a couple of tests

This commit is contained in:
Eric Allen 2009-10-16 23:54:50 -04:00
parent 67e88acacc
commit 290fa3351c
2 changed files with 3 additions and 6 deletions

View file

@ -12,13 +12,12 @@ assert_text 'badge_count', '2'
type "todo_description", "add one to hidden project 1"
click "css=#todo-form-new-action .submit_box button"
wait_for_visible "flash"
wait_for_not_visible "flash"
type "todo_description", "add one to hidden project 2"
click "css=#todo-form-new-action .submit_box button"
wait_for_visible "flash"
assert_text 'badge_count', '4'
wait_for_text 'badge_count', '4'
open '/projects/1'
assert_text 'badge_count', '4'

View file

@ -9,9 +9,7 @@ click "//div[@id='edit_project_2'] //button"
wait_for_not_visible "edit_project_2"
wait_for_visible "project_2"
wait_for_visible "flash"
wait_for_not_visible "flash"
click "css=#project_2 .buttons img.delete_item"
assert_confirmation "Are you sure that you want to delete the project 'become a billionaire'?"
wait_for_visible "flash"
assert_text "flash", "Deleted project 'become a billionaire'"
wait_for_element_not_present "project_2"
wait_for_text "flash", "Deleted project 'become a billionaire'"
wait_for_element_not_present "project_2"