From 188b61bf1bd68c7e2504334d38c335370cd961f7 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 10 Dec 2018 19:52:53 +0530 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=92=8D=20Add=20test=20for=20filte?= =?UTF-8?q?rs=20with=20sorting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cypress/integration/datatable_spec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cypress/integration/datatable_spec.js b/cypress/integration/datatable_spec.js index 918dd5a..053114b 100644 --- a/cypress/integration/datatable_spec.js +++ b/cypress/integration/datatable_spec.js @@ -222,4 +222,20 @@ describe('DataTable', function () { cy.get('.dt-row[data-row-index=1]').should('not.be.visible'); }); }); + + describe('Inline filters with sorting', function () { + before(function () { + cy.visit('/'); + }); + + it('filters with sorting', function () { + cy.clickDropdown(7); + cy.clickDropdownItem(7, 'Sort Descending'); + cy.get('.dt-filter[data-col-index=5]').as('filterInput5'); + cy.getCell(5, 24).click().type('{ctrl}f'); + cy.get('@filterInput5').type('>3000'); + + cy.get('.dt-body .dt-row').first().should('have.class', 'dt-row-24'); + }); + }); });