diff --git a/spiffworkflow-frontend/cypress/e2e/process_models.cy.js b/spiffworkflow-frontend/cypress/e2e/process_models.cy.js
index 3b28514b..48b65d5d 100644
--- a/spiffworkflow-frontend/cypress/e2e/process_models.cy.js
+++ b/spiffworkflow-frontend/cypress/e2e/process_models.cy.js
@@ -99,7 +99,7 @@ describe('process-models', () => {
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" }');
- cy.contains('Save').click();
+ cy.getBySel('file-save-button').click();
cy.get('input[name=file_name]').type(jsonFileName);
cy.contains('Save Changes').click();
cy.contains(`Process Model File: ${jsonFileName}`);
@@ -168,12 +168,8 @@ describe('process-models', () => {
});
it('can allow searching for model', () => {
- cy.get('[name=process-model-selection]').click();
- cy.get('[name=process-model-selection]').type('model-3');
- cy.get(
- `[aria-label="acceptance-tests-group-one/acceptance-tests-model-3"]`
- ).click();
-
- cy.contains('Process Instances').click();
+ cy.getBySel('process-model-selection').click().type('model-3');
+ cy.contains('acceptance-tests-group-one/acceptance-tests-model-3').click();
+ cy.contains('List').click();
});
});
diff --git a/spiffworkflow-frontend/src/components/ButtonWithConfirmation.tsx b/spiffworkflow-frontend/src/components/ButtonWithConfirmation.tsx
index 31a8e5ef..25aaadc1 100644
--- a/spiffworkflow-frontend/src/components/ButtonWithConfirmation.tsx
+++ b/spiffworkflow-frontend/src/components/ButtonWithConfirmation.tsx
@@ -45,30 +45,11 @@ export default function ButtonWithConfirmation({
onRequestSubmit={handleConfirmation}
/>
);
- // return (
- //
- //
- // {title}
- //
- // {modalBodyElement()}
- //
- //
- //
- //
- //
- // );
};
return (
<>
-