From 5bcbe6bd5058e59e5b1cd30a1b8ebdf8c851852c Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 29 Sep 2022 15:15:21 +0530 Subject: [PATCH] test: kludge for name highlight render on column modal Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/integration/common/3e_duration_column.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/cypress/integration/common/3e_duration_column.js b/scripts/cypress/integration/common/3e_duration_column.js index c0f9f466df..ce7691d5ca 100644 --- a/scripts/cypress/integration/common/3e_duration_column.js +++ b/scripts/cypress/integration/common/3e_duration_column.js @@ -57,6 +57,10 @@ export const genTest = (apiType, dbType) => { .contains("Duration") .click(); + // fix me! wait till the modal rendering (input highlight) is completed + // focus shifts back to the input field to select text after the dropdown is rendered + cy.wait(500); + // Configure Duration format fetchParentFromLabel("Duration Format"); cy.getActiveSelection(".nc-dropdown-duration-option") @@ -96,6 +100,11 @@ export const genTest = (apiType, dbType) => { .should("exist") .clear() .type(newName); + + // fix me! wait till the modal rendering (input highlight) is completed + // focus shifts back to the input field to select text after the dropdown is rendered + cy.wait(500); + // Configure Duration format fetchParentFromLabel("Duration Format"); cy.getActiveSelection(".nc-dropdown-duration-option")