From ea0955c47143df05509a8f4ee289788d12259d51 Mon Sep 17 00:00:00 2001 From: Luna McNulty Date: Fri, 29 Mar 2024 14:19:22 -0400 Subject: [PATCH] Update search to match new query --- .../cypress/e2e/integration/apps/checklistsForm.cy.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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', () => {