diff --git a/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js b/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js index 086874db12..78c4ecf18a 100644 --- a/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js +++ b/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js @@ -63,6 +63,19 @@ describe('News Digest', () => { newsArticles ); + cy.conditionalIntercept( + '**/graphql', + (req) => req.body.operationName == 'UpdateCandidate', + 'UpdateCandidate', + { + data: { + updateOneCandidate: { + url: 'https://dummy.com', + }, + }, + } + ); + cy.visit(url); cy.get('[data-cy="results"] [data-cy="candidate-card"] [data-cy="candidate-dropdown"]', {