From 454f651d0ad1672a2af9aaa2cf6bdefd8d449b4c 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 124d1acc..b71dde71 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 194ad923..adfa203b 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 );