diff --git a/site/gatsby-site/cypress/e2e/integration/apps/checklistsForm.cy.js b/site/gatsby-site/cypress/e2e/integration/apps/checklistsForm.cy.js index 96555ad6f9..eb5795dcb8 100644 --- a/site/gatsby-site/cypress/e2e/integration/apps/checklistsForm.cy.js +++ b/site/gatsby-site/cypress/e2e/integration/apps/checklistsForm.cy.js @@ -62,12 +62,9 @@ describe('Checklists App Form', () => { }; const interceptFindRisks = (risks) => { - cy.conditionalIntercept( - '**/graphql', - (req) => req.body.operationName == 'findRisks', - 'findRisks', - { data: { risks } } - ); + cy.conditionalIntercept('**/graphql', (req) => req.body.query.includes('GMF'), 'findRisks', { + data: { risks }, + }); }; it('Should have read-only access for non-logged-in users', () => {