From 43cd9335f1bd1111dd339b7d09085cb86de2d9d7 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 17 Apr 2018 07:32:36 -0400 Subject: [PATCH] Fix for Selenium workflow editor test not fully updating annotation. Sometimes the last character of the annotation is missing - gotta wait for the last update of form listener I suppose. --- test/selenium_tests/test_workflow_editor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/selenium_tests/test_workflow_editor.py b/test/selenium_tests/test_workflow_editor.py index cd8b78313df..42a40953bde 100644 --- a/test/selenium_tests/test_workflow_editor.py +++ b/test/selenium_tests/test_workflow_editor.py @@ -58,6 +58,7 @@ class WorkflowEditorTestCase(SeleniumTestCase): editor.label_input.wait_for_and_send_keys("input1") editor.annotation_input.wait_for_and_send_keys("my cool annotation") editor.label_input.wait_for_and_click() # Seems to help force the save of whole annotation. + self.sleep_for(self.wait_types.UX_RENDER) self.screenshot("workflow_editor_data_input_filled_in") self.workflow_editor_save_and_close() self.workflow_index_open_with_name(name) @@ -85,6 +86,7 @@ class WorkflowEditorTestCase(SeleniumTestCase): editor.label_input.wait_for_and_send_keys("input1") editor.annotation_input.wait_for_and_send_keys("my cool annotation") editor.label_input.wait_for_and_click() # Seems to help force the save of whole annotation. + self.sleep_for(self.wait_types.UX_RENDER) self.screenshot("workflow_editor_data_input_collection_filled_in") self.workflow_editor_save_and_close() self.workflow_index_open_with_name(name)