Skip to content

Commit

Permalink
selenium tests: make turn_on_track() more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed May 18, 2012
1 parent 95602a4 commit ede31fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/selenium_tests/jbrowse_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ def turn_on_track( self, tracktext ):

# find the track label
tracklabel = self.assert_element( "//div[@class='tracklist-label'][contains(.,'%s')]" % tracktext )
dragpane = self.assert_element( "//div[contains(@class, 'trackContainer')]" )

# drag the track label over
self.actionchains() \
.move_to_element( tracklabel ) \
.click_and_hold( None ) \
.move_by_offset( 300, 50 ) \
.release( None ) \
.drag_and_drop( tracklabel, dragpane ) \
.perform()

self.assert_no_js_errors()
Expand Down

0 comments on commit ede31fd

Please sign in to comment.