From e4ff09ad6a0f568efcae983b853f90467497c060 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Wed, 21 Jun 2023 15:53:13 +0530 Subject: [PATCH] test: Fix form flaky test --- cypress/integration/form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/integration/form.js b/cypress/integration/form.js index 8186647a14..cdd6d7e9bd 100644 --- a/cypress/integration/form.js +++ b/cypress/integration/form.js @@ -59,11 +59,13 @@ context("Form", () => { .blur(); cy.click_listview_row_item_with_text("Test Form Contact 3"); + cy.scrollTo(0); cy.get("#page-Contact .page-head").findByTitle("Test Form Contact 3").should("exist"); cy.get(".prev-doc").should("be.visible").click(); cy.get(".msgprint-dialog .modal-body").contains("No further records").should("be.visible"); cy.hide_dialog(); + cy.scrollTo(0); cy.get("#page-Contact .page-head").findByTitle("Test Form Contact 3").should("exist"); cy.get(".next-doc").should("be.visible").click(); cy.get(".msgprint-dialog .modal-body").contains("No further records").should("be.visible");