mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Sped up a couple of tests
This commit is contained in:
parent
67e88acacc
commit
290fa3351c
2 changed files with 3 additions and 6 deletions
|
@ -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'
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue