diff --git a/site/gatsby-site/cypress/e2e/submit.cy.js b/site/gatsby-site/cypress/e2e/submit.cy.js index 21d258057f..04641c7e07 100644 --- a/site/gatsby-site/cypress/e2e/submit.cy.js +++ b/site/gatsby-site/cypress/e2e/submit.cy.js @@ -110,7 +110,10 @@ describe('The Submit form', () => { ); // Set the ID from the button in the list of semantically similar incidents - cy.get('[data-cy=related-byText] [data-cy=result] [data-cy=set-id]').first().click(); + cy.get('[data-cy=related-byText] [data-cy=result] [data-cy=set-id]') + .contains('#1') + .first() + .click(); cy.get( '[data-cy=related-byText] [data-cy=result] [data-cy="similar-selector"] [data-cy="similar"]'