mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Comments inline about this - but the target failure I'm hoping this fixes is: https://jenkins.galaxyproject.org/job/selenium/528/artifact/528-test-errors/test_options2017092203081506064101/stacktrace.txt
31 lines
925 B
Python
31 lines
925 B
Python
from .framework import SeleniumTestCase
|
|
from .framework import selenium_test
|
|
|
|
|
|
class HistoryOptionsTestCase(SeleniumTestCase):
|
|
|
|
@selenium_test
|
|
def test_options(self):
|
|
self.register()
|
|
self.perform_upload(self.get_filename("1.txt"))
|
|
self.wait_for_history()
|
|
self.click_history_options()
|
|
|
|
menu_selector = self.history_options_menu_selector()
|
|
self.wait_for_selector_visible(menu_selector)
|
|
|
|
# Click away closes history options
|
|
self.click_center()
|
|
|
|
self.assert_selector_absent_or_hidden(menu_selector)
|
|
|
|
hda_id = self.latest_history_item()["id"]
|
|
self.click_hda_title(hda_id, wait=True)
|
|
|
|
hda_body_selector = self.hda_body_selector(hda_id)
|
|
self.wait_for_selector_visible(hda_body_selector)
|
|
|
|
self.click_hda_title(hda_id, wait=True)
|
|
|
|
self.assert_selector_absent_or_hidden_after_transitions(hda_body_selector)
|