Files
galaxy/lib/galaxy_test/selenium/test_history_options.py
T
Nicola Soranzo 0391cd4b62 Rename FooBarTestCase test classes as TestFooBar in API, framework, performance, Selenium and ToolShed tests
These are collected by pytest only because they are `unittest.TestCase` derived,
but normally pytest collects only test classes whose name starts with `Test`, see
https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes

Also:
- Some type annotations
2022-10-15 17:54:31 +01:00

26 lines
982 B
Python

from .framework import (
selenium_test,
SeleniumTestCase,
)
class TestHistoryOptions(SeleniumTestCase):
@selenium_test
def test_options(self):
self.register()
self.perform_upload(self.get_filename("1.txt"))
menu_selector = self.navigation.history_panel.selectors.options_menu
self.wait_for_absent_or_hidden(menu_selector)
self.click_history_options()
component = self.wait_for_visible(menu_selector)
self.screenshot("history_options")
self.send_escape(component)
self.wait_for_absent_or_hidden(menu_selector)
hid = 1
self.history_panel_wait_for_hid_state(hid, "ok")
self.history_panel_click_item_title(hid=hid, wait=True)
item_component = self.history_panel_item_body_component(hid=hid)
item_component.wait_for_visible()
self.history_panel_click_item_title(hid=hid, wait=True)
item_component.assert_absent_or_hidden_after_transitions()