Skip to content

Commit

Permalink
add basic bigwig track selenium test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Aug 2, 2012
1 parent f8ace1b commit 032a211
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/selenium_tests/volvox_biodb_test.py
Expand Up @@ -54,12 +54,21 @@ def test_volvox( self ):
self.sequence()

# test that the frame usage track claims to have links to NCBI
self.turn_on_track( 'Frame usage' );
self.do_typed_query('ctgA:2,381..21,220');
self.assert_element("//div[@title='search at NCBI']");
self.turn_on_track( 'Frame usage' )
self.do_typed_query('ctgA:2,381..21,220')
self.assert_element("//div[@title='search at NCBI']")

# test bigwig
self.bigwig();

self.browser.close()

def bigwig( self ):
self.turn_on_track('volvox_microarray.bw')
self.assert_elements("//div[@id='track_volvox_microarray.bw']//canvas")
self.assert_no_js_errors()


def sequence( self ):
self.do_typed_query( '0..80' );
time.sleep(0.2);
Expand Down

0 comments on commit 032a211

Please sign in to comment.