mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 18:20:12 +01:00
fix a lot of selenium tests to pass again
This commit is contained in:
parent
df26cf6e87
commit
09f0322d45
11 changed files with 30 additions and 19 deletions
|
|
@ -18,4 +18,7 @@ click "css=#toggle_c1"
|
|||
wait_for_not_visible "todo_9"
|
||||
|
||||
# check that newly added action is not there
|
||||
wait_for_not_visible "xpath=//span[text()='a new action']"
|
||||
wait_for_not_visible "xpath=//span[text()='a new action']"
|
||||
|
||||
# toggle c1 back. Selenium does not reset cookies
|
||||
click "css=#toggle_c1"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ login :as => 'admin'
|
|||
|
||||
open "/"
|
||||
# we should start with 10 actions on home page
|
||||
assert_text 'badge_count', '10'
|
||||
assert_text 'badge_count', '11'
|
||||
|
||||
# set project to hidden state
|
||||
open "/projects/2"
|
||||
|
|
@ -28,4 +28,4 @@ wait_for_visible "flash"
|
|||
verify_text_not_present 'should be hidden'
|
||||
|
||||
# badge count should still be same
|
||||
assert_text 'badge_count', '7'
|
||||
assert_text 'badge_count', '7'
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ wait_for_element_present "show_from_todo_9"
|
|||
type "show_from_todo_9", "1/1/2030"
|
||||
click "css=#submit_todo_9"
|
||||
wait_for_element_not_present "todo_9"
|
||||
assert_text 'badge_count', '9'
|
||||
assert_text 'badge_count', '10'
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@ wait_for_element_present "show_from_todo_5"
|
|||
type "show_from_todo_5", "1/1/2030"
|
||||
click "css=#submit_todo_5"
|
||||
wait_for_element_not_present "todo_5"
|
||||
assert_text 'badge_count', '9'
|
||||
assert_text 'badge_count', '10'
|
||||
wait_for_not_visible "c5"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/"
|
||||
wait_for_element_present '//div[@id="line_todo_5"]//img[@alt="Defer_1"]/..'
|
||||
click '//div[@id="line_todo_5"]//img[@alt="Defer_1"]/..'
|
||||
wait_for_element_present '//div[@id="line_todo_5"]//img[@alt="Defer 1 day"]/..'
|
||||
click '//div[@id="line_todo_5"]//img[@alt="Defer 1 day"]/..'
|
||||
wait_for_element_not_present "todo_5"
|
||||
assert_text 'badge_count', '9'
|
||||
assert_text 'badge_count', '10'
|
||||
wait_for_not_visible "c5"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue