|
|
|
@ -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"); |
|
|
|
|
|
|
|
|
|