Files
galaxy/test/selenium_tests/test_navigates_galaxy.py
T
John Chilton 377e48918d Create galaxy-selenium package.
This is *not* the tests, it is the components for interacting with Galaxy via Selenium that can be used in any Galaxy UI automation context - not just tests. This includes a tiny CLI framework for building apps that drive Galaxy this way.
2019-07-08 12:21:47 +02:00

32 lines
1010 B
Python

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)