From cc153d80d7640448072fc77f4ebee95664cb33cc Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:52:33 +0530 Subject: [PATCH] fix flaky interception --- cypress/pageobject/Patient/PatientPrescription.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cypress/pageobject/Patient/PatientPrescription.ts b/cypress/pageobject/Patient/PatientPrescription.ts index 2e8f2ad1a4e..50f072f1d9b 100644 --- a/cypress/pageobject/Patient/PatientPrescription.ts +++ b/cypress/pageobject/Patient/PatientPrescription.ts @@ -38,12 +38,7 @@ export class PatientPrescription { } clickAllVisibleAdministration() { - cy.get("#should_administer") - .children() - .filter(":visible") - .each(($el) => { - cy.wrap($el).click(); - }); + cy.get("#should_administer").should("be.visible").click(); } selectMedicinebox() {