From 492f9478fcd7c1a8f9c79fb13535b94259dcbdc3 Mon Sep 17 00:00:00 2001 From: burnettk Date: Wed, 28 Dec 2022 23:14:17 -0500 Subject: [PATCH] fix another race conditions in instance cypress test --- spiffworkflow-frontend/cypress/support/commands.js | 1 + spiffworkflow-frontend/src/routes/ProcessModelShow.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/spiffworkflow-frontend/cypress/support/commands.js b/spiffworkflow-frontend/cypress/support/commands.js index 124d1acc8..b71dde717 100644 --- a/spiffworkflow-frontend/cypress/support/commands.js +++ b/spiffworkflow-frontend/cypress/support/commands.js @@ -97,6 +97,7 @@ Cypress.Commands.add( cy.reload(true); cy.contains('Process Model:').should('exist'); cy.contains(/Process Instance.*[kK]icked [oO]ff/).should('not.exist'); + cy.contains('[data-qa=process-model-show-permissions-loaded]', 'true'); } } ); diff --git a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx index 194ad9231..adfa203b3 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx @@ -680,6 +680,7 @@ export default function ProcessModelShow() { perPageOptions={[2, 5, 25]} showReports={false} /> + true );