From 6838517072c340de202b4c75b552f8c2a8b3523d Mon Sep 17 00:00:00 2001 From: eirikhaugstulen Date: Sun, 4 Feb 2024 17:55:51 +0100 Subject: [PATCH 1/2] chore: fix v40 tests --- cypress/e2e/SearchPage/index.js | 8 ++++---- cypress/e2e/SearchThroughAddRelationship/index.js | 13 ++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/cypress/e2e/SearchPage/index.js b/cypress/e2e/SearchPage/index.js index 322dc9d377..7f5976ade7 100644 --- a/cypress/e2e/SearchPage/index.js +++ b/cypress/e2e/SearchPage/index.js @@ -263,13 +263,13 @@ Given('you are in the search page with the TB program being preselected from the When('you fill in the zip code range numbers', () => { cy.get('[data-test="form-attributes"]') - .find('[data-test="capture-ui-input"]') - .eq(5) + .find('input[description="Zip code"]') + .eq(0) .type('7130') .blur(); cy.get('[data-test="form-attributes"]') - .find('[data-test="capture-ui-input"]') - .eq(6) + .find('input[description="Zip code"]') + .eq(1) .type('7135') .blur(); }); diff --git a/cypress/e2e/SearchThroughAddRelationship/index.js b/cypress/e2e/SearchThroughAddRelationship/index.js index 4d46ed2b22..d31888776b 100644 --- a/cypress/e2e/SearchThroughAddRelationship/index.js +++ b/cypress/e2e/SearchThroughAddRelationship/index.js @@ -130,15 +130,14 @@ And('you fill in the the form with values that will return exactly 5 results', ( }); When('you fill in the zip code range numbers', () => { - cy.get('[data-test="d2-form-area"]') - .find('[data-test="capture-ui-input"]') - .eq(5) + cy.get('[data-test="form-attributes"]') + .find('input[description="Zip code"]') + .eq(0) .type('7130') .blur(); - - cy.get('[data-test="d2-form-area"]') - .find('[data-test="capture-ui-input"]') - .eq(6) + cy.get('[data-test="form-attributes"]') + .find('input[description="Zip code"]') + .eq(1) .type('7135') .blur(); }); From 5f08e424ca8c325482a573cd56c3651631a2b62e Mon Sep 17 00:00:00 2001 From: eirikhaugstulen Date: Sun, 4 Feb 2024 18:32:21 +0100 Subject: [PATCH 2/2] chore: fix tests --- cypress/e2e/SearchThroughAddRelationship/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/SearchThroughAddRelationship/index.js b/cypress/e2e/SearchThroughAddRelationship/index.js index d31888776b..51f61acb74 100644 --- a/cypress/e2e/SearchThroughAddRelationship/index.js +++ b/cypress/e2e/SearchThroughAddRelationship/index.js @@ -130,12 +130,12 @@ And('you fill in the the form with values that will return exactly 5 results', ( }); When('you fill in the zip code range numbers', () => { - cy.get('[data-test="form-attributes"]') + cy.get('[data-test="d2-form-area"]') .find('input[description="Zip code"]') .eq(0) .type('7130') .blur(); - cy.get('[data-test="form-attributes"]') + cy.get('[data-test="d2-form-area"]') .find('input[description="Zip code"]') .eq(1) .type('7135')