From b4ffe42006b7f20bba323100173e46e82e6d001c Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 26 Sep 2022 20:15:22 +0530 Subject: [PATCH] test: wait for drop down menu in filter to be available Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/support/page_objects/mainPage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/cypress/support/page_objects/mainPage.js b/scripts/cypress/support/page_objects/mainPage.js index 660edca4cf..73063862b6 100644 --- a/scripts/cypress/support/page_objects/mainPage.js +++ b/scripts/cypress/support/page_objects/mainPage.js @@ -396,7 +396,7 @@ export class _mainPage { .find(".ant-btn-primary") .contains("Add Sort Option") .click(); - cy.getActiveMenu(".nc-dropdown-sort-menu") + cy.getActiveMenu(".nc-dropdown-sort-menu:has(.nc-sort-field-select div)") .find(".nc-sort-field-select div") .first() .click(); @@ -434,7 +434,8 @@ export class _mainPage { .find(".ant-btn-primary") .contains("Add Filter") .click(); - cy.getActiveMenu(".nc-dropdown-filter-menu") + + cy.getActiveMenu(".nc-dropdown-filter-menu:has(.nc-filter-field-select)") .find(".nc-filter-field-select") .should("exist") .last()