mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 01:30:12 +01:00
Dependency testing at Selenium level
This commit is contained in:
parent
40074c71ad
commit
93b83e8682
2 changed files with 15 additions and 0 deletions
8
test/selenium/dependencies/assign_dependency.rsel
Normal file
8
test/selenium/dependencies/assign_dependency.rsel
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
setup :fixtures => :all
|
||||||
|
login :as => 'admin'
|
||||||
|
open "/"
|
||||||
|
drag_todo_to 18, 9
|
||||||
|
wait_for_visible 'css=#todo_9 a.show_successors img'
|
||||||
|
click 'css=#todo_9 a.show_successors img'
|
||||||
|
assert_visible 'successors_todo_9'
|
||||||
|
assert_visible 'css=#successors_todo_9 #successor_todo_18'
|
||||||
|
|
@ -44,6 +44,13 @@ module SeleniumOnRails::TestBuilderAccessors
|
||||||
command command_name, expected_count
|
command command_name, expected_count
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def drag_todo_to(id1, id2)
|
||||||
|
mouse_down_at "css=#line_todo_#{id1} img.grip", "4,4"
|
||||||
|
mouse_move_at "line_todo_#{id2}", '20,3'
|
||||||
|
mouse_over "line_todo_#{id2}"
|
||||||
|
mouse_up_at "line_todo_#{id2}", '20,3'
|
||||||
|
end
|
||||||
|
|
||||||
def assert_context_count_incremented(&block)
|
def assert_context_count_incremented(&block)
|
||||||
store_context_count 'initial_context_count'
|
store_context_count 'initial_context_count'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue