From ac4e69d075a42e5b044aead9de275aba8cef8270 Mon Sep 17 00:00:00 2001 From: Simona Domnisoru Date: Thu, 11 Jul 2024 09:26:45 +0200 Subject: [PATCH] fix: flaky cypress --- cypress/e2e/NewPage/NewPage.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cypress/e2e/NewPage/NewPage.js b/cypress/e2e/NewPage/NewPage.js index dabb30559c..bc7f545497 100644 --- a/cypress/e2e/NewPage/NewPage.js +++ b/cypress/e2e/NewPage/NewPage.js @@ -427,6 +427,9 @@ Then('you submit the form again from the duplicates modal', () => { // New person in WHO RMNCH Tracker And('you are in the WHO RMNCH program registration page', () => { cy.visit('/#/new?programId=WSGAb5XwJ3Y&orgUnitId=DiszpKrYNg8'); + cy.get('[data-test="capture-ui-input"]') + .eq(1) + .invoke('val').should('not.be.empty'); }); And('you are in Child programme registration page', () => {