From 25ce4fdfb3de0f9e774942277fee3f2aa7037e9c Mon Sep 17 00:00:00 2001 From: Sarthak Aggarwal Date: Sat, 22 Jun 2024 02:14:04 +0530 Subject: [PATCH] wait to let page render (#1425) Signed-off-by: Sarthak Aggarwal --- .../plugins/index-management-dashboards-plugin/aliases.js | 4 ++++ .../index-management-dashboards-plugin/transforms_spec.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js index e91e2d710..bb0b4cf41 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js @@ -183,6 +183,10 @@ describe('Aliases', () => { }); cy.get('[data-test-subj="moreAction"]').click(); + + // Extra wait required for page data to load, otherwise "Enable" button will be disabled + cy.wait(2000); + // Flush btn should be enabled cy.get('[data-test-subj="Flush Action"]') .should('exist') diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/transforms_spec.js b/cypress/integration/plugins/index-management-dashboards-plugin/transforms_spec.js index 0b097ff54..4c53838d3 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/transforms_spec.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/transforms_spec.js @@ -172,6 +172,9 @@ describe('Transforms', () => { force: true, }); + // Extra wait required for page data to load, otherwise "Enable" button will be disabled + cy.wait(2000); + // Confirm we get toaster saying changes saved cy.contains(`Changes to transform saved`);