From fd2ee1d4fc6a3ce24efa91b25a547a83a41231c0 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 9 Nov 2023 15:56:53 -0500 Subject: [PATCH] fixed process model cypress test w/ burnettk --- spiffworkflow-frontend/cypress/e2e/process_models.cy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spiffworkflow-frontend/cypress/e2e/process_models.cy.js b/spiffworkflow-frontend/cypress/e2e/process_models.cy.js index 5e3e0be30..2659ed36c 100644 --- a/spiffworkflow-frontend/cypress/e2e/process_models.cy.js +++ b/spiffworkflow-frontend/cypress/e2e/process_models.cy.js @@ -75,7 +75,7 @@ describe('process-models', () => { // add new bpmn file cy.getBySel('process-model-add-file').click(); - cy.contains('New BPMN File').click(); + cy.getBySel('process-model-add-file').contains('New BPMN File').click(); cy.contains(/^Process Model File$/); cy.get('g[data-element-id=StartEvent_1]').click(); cy.contains('General').click(); @@ -94,7 +94,7 @@ describe('process-models', () => { // add new dmn file cy.getBySel('process-model-add-file').click(); - cy.contains('New DMN File').click(); + cy.getBySel('process-model-add-file').contains('New DMN File').click(); cy.contains(/^Process Model File$/); cy.get('g[data-element-id=decision_1]').click(); cy.contains('General').click(); @@ -112,7 +112,7 @@ describe('process-models', () => { // add new json file cy.getBySel('process-model-add-file').click(); - cy.contains('New JSON File').click(); + cy.getBySel('process-model-add-file').contains('New JSON File').click(); cy.contains(/^Process Model File$/); // Some reason, cypress evals json strings so we have to escape it it with '{{}' cy.get('.view-line').type('{{} "test_key": "test_value" }');