From 49fc889456aa237b29632a34f76e1ef035d30526 Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 20 Jun 2022 09:21:35 -0400 Subject: [PATCH] added a wait in the tests for after saving dmn and bpmn diagrams w/ burnettk --- cypress/e2e/process_instances.cy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/e2e/process_instances.cy.js b/cypress/e2e/process_instances.cy.js index 7747939..08edcc1 100644 --- a/cypress/e2e/process_instances.cy.js +++ b/cypress/e2e/process_instances.cy.js @@ -78,6 +78,9 @@ function updateDmnText(oldText, newText, elementId="wonderful_process", dmnFile= // we have to click on something in order to set the new dmn xml cy.contains(`Process Model File: ${dmnFile}`).click(); cy.contains('Save').click(); + + // just to see if we are cancelling this save request by navigating away from this page using the breadcrumb + cy.wait(100); } function updateBpmnPythonScript(pythonScript, bpmnFile, elementId="process_script") { @@ -86,4 +89,5 @@ function updateBpmnPythonScript(pythonScript, bpmnFile, elementId="process_scrip cy.get('#bio-properties-panel-pythonScript').clear().type(pythonScript); cy.contains(`Process Model File: ${bpmnFile}`).click(); cy.contains('Save').click(); + cy.wait(100); }