From a8cbd0cae871abbb1bf26ba1f72c42a9b1f57f47 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 30 May 2022 22:52:53 +0530 Subject: [PATCH] test/cypress: sort/filter menu operation corrections Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/support/page_objects/mainPage.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/cypress/support/page_objects/mainPage.js b/scripts/cypress/support/page_objects/mainPage.js index bdffe58a8b..928c8f8e59 100644 --- a/scripts/cypress/support/page_objects/mainPage.js +++ b/scripts/cypress/support/page_objects/mainPage.js @@ -297,12 +297,13 @@ export class _mainPage { cy.snipActiveMenu("Menu_SortField"); - cy.get(".nc-sort-field-select div").first().click(); + cy.get(".nc-sort-field-select div").first().click().type(field); cy.snipActiveMenu("Menu_SortField_fieldSelection"); // cy.get(`.menuable__content__active .v-list-item:contains(${field})`) // .first() // .click(); - cy.getActiveMenu().find(`.nc-sort-fld-${field}`).click(); + // cy.wait(3000) + cy.getActiveMenu().find(`.nc-sort-fld-${field}`).should('exist').click(); cy.get(".nc-sort-dir-select div").first().click(); cy.snipActiveMenu("Menu_SortField_criteriaSelection"); cy.get( @@ -319,15 +320,15 @@ export class _mainPage { filterField = (field, operation, value) => { cy.get(".nc-filter-menu-btn").click(); - cy.wait(2000); + // cy.wait(2000); cy.contains("Add Filter").click(); - cy.wait(2000); + // cy.wait(2000); cy.snipActiveMenu("Menu_FilterField"); - cy.get(".nc-filter-field-select").should("exist").last().click(); + cy.get(".nc-filter-field-select").should("exist").last().click().type(field);; cy.snipActiveMenu("Menu_FilterField-fieldSelect"); - cy.getActiveMenu().find(`.nc-filter-fld-${field}`).click(); + cy.getActiveMenu().find(`.nc-filter-fld-${field}`).should('exist').click(); cy.get(".nc-filter-operation-select").should("exist").last().click(); cy.snipActiveMenu("Menu_FilterField-operationSelect");