Files
galaxy/test/integration_selenium/test_edam_tool_panel_views.py
T
Nicola Soranzo 30f60493c3 Format Python code with black 23.1.0
with manual fixes to 3 files to make them compatible with black 22.12.0 .

We need to keep black pinned at `<23` until we vendorise `packaging`, since
the new version of black depends on `packaging >=22.0` which is the version
where `LegacyVersion` (which we use for tool lineages) was removed.
2023-02-01 23:51:03 +00:00

42 lines
1.6 KiB
Python

from galaxy.selenium.navigates_galaxy import retry_during_transitions
from .framework import (
selenium_test,
SeleniumIntegrationTestCase,
)
class TestEdamToolPanelViewsSeleniumIntegration(SeleniumIntegrationTestCase):
ensure_registered = True # to test workflow editor
@selenium_test
def test_basic_navigation(self):
tool_panel = self.components.tool_panel
tool_panel.views_button.wait_for_and_click()
tool_panel.views_menu_item(panel_id="ontology:edam_operations").wait_for_and_click()
self.sleep_for(self.wait_types.UX_RENDER)
self._assert_displaying_edam_operations()
# reload page and ensure the edam operations are still being displayed.
self.home()
tool_panel.views_button.wait_for_visible()
self._assert_displaying_edam_operations()
self.screenshot("tool_panel_view_edam_landing")
# navigate to workflow editor and make sure this is still enabled...
annotation = "tool panel test"
self.workflow_create_new(annotation=annotation)
editor = self.components.workflow_editor
editor.canvas_body.wait_for_visible()
editor.tool_menu.wait_for_visible()
self._assert_displaying_edam_operations()
self.screenshot("tool_panel_view_edam_workflow_editor")
@retry_during_transitions
def _assert_displaying_edam_operations(self):
tool_panel = self.components.tool_panel
labels = tool_panel.panel_labels.all()
assert len(labels) > 0
label0 = labels[0]
assert label0.text.strip() == "ANALYSIS"