From 998c04483270771d6b757821a1c0b63f00f860ff Mon Sep 17 00:00:00 2001 From: Nisarg Date: Tue, 15 Oct 2024 13:09:31 -0700 Subject: [PATCH] feat: update --- .../smoke-test/a-class-seedlot-reg-form-submission.cy.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/cypress/e2e/smoke-test/a-class-seedlot-reg-form-submission.cy.ts b/frontend/cypress/e2e/smoke-test/a-class-seedlot-reg-form-submission.cy.ts index 1ea527be6..5badc01fc 100644 --- a/frontend/cypress/e2e/smoke-test/a-class-seedlot-reg-form-submission.cy.ts +++ b/frontend/cypress/e2e/smoke-test/a-class-seedlot-reg-form-submission.cy.ts @@ -44,11 +44,13 @@ describe('A Class Seedlot Registration form, Parent Tree and SMP part-3(Calculat cy.get(`.${prefix}--modal-container[aria-label="Seedlot registration"]`) .should('be.visible'); - cy.get(`h3.${prefix}--modal-header__heading`) + cy.get(`.${prefix}--modal-container[aria-label="Seedlot registration"]`) + .find(`h3.${prefix}--modal-header__heading`) .should('have.text', regFormData.submission.title); - cy.get(`.${prefix}--modal-content`) - .find('p') + cy.get(`.${prefix}--modal-container[aria-label="Seedlot registration"]`) + .find(`.${prefix}--modal-content`) + .children('p') .should('have.text', regFormData.submission.subtitle); cy.get(`.${prefix}--modal-container[aria-label="Seedlot registration"]`)