Improved workflow show test case - use navigation and less arbitrary DOM element.

This commit is contained in:
John Chilton
2022-04-04 19:43:15 -04:00
parent 884cdda722
commit fdfa72bf72
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -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...
+1 -1
View File
@@ -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