mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 07:48:50 +01:00
Got one Selenium test working
This commit is contained in:
parent
d0e6ebd41e
commit
eac798d0bf
2 changed files with 15 additions and 10 deletions
|
|
@ -1,10 +1,10 @@
|
|||
setup :fixtures => :all
|
||||
login :as => 'admin'
|
||||
open "/contexts/1"
|
||||
click "context_name_in_place_editor"
|
||||
wait_for_element_present "css=#context_name_in_place_editor-inplaceeditor input.editor_field"
|
||||
type "css=#context_name_in_place_editor-inplaceeditor input.editor_field", "Test Foo"
|
||||
click "css=#context_name_in_place_editor-inplaceeditor input.editor_ok_button"
|
||||
wait_for_text "context_name_in_place_editor", "Test Foo"
|
||||
click "context_name"
|
||||
wait_for_element_present "css=#context_name form input"
|
||||
type "css=#context_name form input", "Test Foo"
|
||||
click "css=#context_name form button"
|
||||
wait_for_text "context_name", "Test Foo"
|
||||
open "/contexts/1"
|
||||
wait_for_text "context_name_in_place_editor", "Test Foo"
|
||||
wait_for_text "context_name", "Test Foo"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue