mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 18:20:12 +01:00
Updated Selenium test suite so that *all tests pass*. Found and fixed one bug in routes that a Selenium test caught.
This commit is contained in:
parent
397029dfc1
commit
c6b159b97e
9 changed files with 10 additions and 10 deletions
|
|
@ -9,7 +9,7 @@ assert_element_present "todo_9"
|
|||
|
||||
# add new action to existing context
|
||||
type "todo_description", "a new action"
|
||||
type "todo_context_name", "Agenda"
|
||||
type "todo_context_name", "agenda"
|
||||
click "css=#todo-form-new-action .submit_box button"
|
||||
wait_for_visible "flash"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ setup :fixtures => :all
|
|||
login :as => 'admin'
|
||||
open '/'
|
||||
click "xpath=//div[@id='c1'] //div[@id='todo_9'] //input[@class='item-checkbox']"
|
||||
wait_for_element_present "xpath=//div[@id='completed'] //div[@id='todo_9']"
|
||||
wait_for_element_present "xpath=//div[@id='completed_container'] //div[@id='todo_9']"
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@ setup :fixtures => :all
|
|||
login :as => 'admin'
|
||||
open '/'
|
||||
click "xpath=//div[@id='c5'] //div[@id='todo_5'] //input[@class='item-checkbox']"
|
||||
wait_for_element_present "xpath=//div[@id='completed'] //div[@id='todo_5']"
|
||||
wait_for_element_present "xpath=//div[@id='completed_container'] //div[@id='todo_5']"
|
||||
wait_for_not_visible 'c5'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open '/'
|
||||
click "xpath=//div[@id='completed'] //div[@id='todo_3'] //input[@class='item-checkbox']"
|
||||
click "xpath=//div[@id='completed_container'] //div[@id='todo_3'] //input[@class='item-checkbox']"
|
||||
wait_for_element_present "xpath=//div[@id='c4'] //div[@id='todo_3']"
|
||||
assert_not_visible "c4empty-nd"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue