mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Improved workflow show test case - use navigation and less arbitrary DOM element.
This commit is contained in:
@@ -619,6 +619,10 @@ workflow_editor:
|
||||
state_modal_body: '.state-upgrade-modal'
|
||||
modal_button_continue: '.modal-footer .btn'
|
||||
|
||||
workflow_show:
|
||||
selectors:
|
||||
title: 'h3.item_name'
|
||||
|
||||
invocations:
|
||||
selectors:
|
||||
invocations_table: '.invocations-list table'
|
||||
|
||||
@@ -26,8 +26,8 @@ class WorkflowManagementTestCase(SeleniumTestCase):
|
||||
self.workflow_index_open()
|
||||
self._workflow_import_from_url()
|
||||
self.workflow_index_click_option("View")
|
||||
title = self.wait_for_selector(".page-body h3")
|
||||
assert "TestWorkflow1" in title.text
|
||||
title_item = self.components.workflow_show.title.wait_for_visible()
|
||||
assert "TestWorkflow1" in title_item.text
|
||||
self.screenshot("workflow_manage_view")
|
||||
# TODO: Test display of steps...
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</%def>
|
||||
|
||||
<%def name="render_item_header( item )">
|
||||
<h3>${get_item_name( item )| h}</h3>
|
||||
<h3 class="item_name">${get_item_name( item )| h}</h3>
|
||||
%if hasattr( item, "annotation") and item.annotation is not None:
|
||||
<div class="annotation">Annotation: ${item.annotation}</div>
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user