Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy_test.selenium.test_history_options

from .framework import (
    selenium_test,
    SeleniumTestCase,
)


[docs]class HistoryOptionsTestCase(SeleniumTestCase):
[docs] @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") # TODO: clicking in center iframe dimisses old menu but not new one, # sending escape dismisses the new menu and not old one. Sync this behavior. if self.is_beta_history(): self.send_escape(component) else: # Click away closes history options self.click_center() 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()