From 50ebbb17b4cb225356e7ff1b66ea152e81ccb3f1 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 7 Sep 2023 15:31:31 -0400 Subject: [PATCH] some improvements to cypress tests w/ burnettk --- .../cypress/e2e/process_instances.cy.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spiffworkflow-frontend/cypress/e2e/process_instances.cy.js b/spiffworkflow-frontend/cypress/e2e/process_instances.cy.js index 632b25cb..61e03689 100644 --- a/spiffworkflow-frontend/cypress/e2e/process_instances.cy.js +++ b/spiffworkflow-frontend/cypress/e2e/process_instances.cy.js @@ -172,15 +172,11 @@ describe('process-instances', () => { }); it('can filter', () => { - cy.getBySel('process-instance-list-link').click(); - cy.contains('My Process Instances'); - cy.get('.process-instance-list-row-variant-for-me'); - cy.assertAtLeastOneItemInPaginatedResults(); - - cy.getBySel('process-instance-list-all').click(); + cy.visit('/admin/process-instances/all'); cy.contains('All Process Instances'); cy.get('.process-instance-list-row-variant-all'); cy.assertAtLeastOneItemInPaginatedResults(); + cy.getBySel('filter-section-expand-toggle').click(); const statusSelect = '#process-instance-status-select'; PROCESS_STATUSES.forEach((processStatus) => {