Skip to content

Commit

Permalink
Add Selenium test case for testing bits of navigates_galaxy.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 2, 2017
1 parent cc3c3a9 commit bff3647
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/selenium_tests/test_navigates_galaxy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from galaxy_selenium.navigates_galaxy import (
exception_indicates_not_clickable,
exception_seems_to_indicate_transition,
)

from .framework import (
selenium_test,
SeleniumTestCase,
)


class NavigatesGalaxySeleniumTestCase(SeleniumTestCase):
"""Test the Selenium test framework itself.
Unlike the others test cases in this module, this test case tests the
test framework itself (for when that makes sense, mostly corner cases).
"""

@selenium_test
def test_click_error(self):
self.home()
self.upload_start_click()
# Open the details, verify they are open and do a refresh.
exception = None
try:
refresh_button = self.wait_for_selector("#history-refresh-button")
refresh_button.click()
except Exception as e:
exception = e
assert exception is not None
assert exception_indicates_not_clickable(exception)
assert exception_seems_to_indicate_transition(exception)

0 comments on commit bff3647

Please sign in to comment.