Skip to content

Commit

Permalink
Always select incident #1 rather than the top match
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcnulty committed Aug 3, 2022
1 parent 811bf08 commit 82ffe95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/gatsby-site/cypress/e2e/submit.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'
Expand Down

0 comments on commit 82ffe95

Please sign in to comment.