mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 09:10: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
|
|
@ -44,6 +44,13 @@ module SeleniumOnRails::TestBuilderAccessors
|
|||
command command_name, expected_count
|
||||
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)
|
||||
store_context_count 'initial_context_count'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue