Skip to content

Commit

Permalink
fixed process model cypress test w/ burnettk
Browse files Browse the repository at this point in the history
  • Loading branch information
jasquat committed Nov 9, 2023
1 parent bbe2293 commit fd2ee1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spiffworkflow-frontend/cypress/e2e/process_models.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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" }');
Expand Down

0 comments on commit fd2ee1d

Please sign in to comment.