From 82ffe95a8c6c2c7737d68d758fcf76329ca72f9a Mon Sep 17 00:00:00 2001 From: Luna McNulty Date: Wed, 3 Aug 2022 13:45:37 -0400 Subject: [PATCH] Always select incident #1 rather than the top match --- site/gatsby-site/cypress/e2e/submit.cy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"]'