Skip to content

Commit

Permalink
Prevent test from crashing (#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela authored Apr 22, 2024
1 parent 6cd0614 commit 2b8bf51
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]', {
Expand Down

0 comments on commit 2b8bf51

Please sign in to comment.