Skip to content

Commit

Permalink
test: πŸ’ Add test for filters with sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Dec 10, 2018
1 parent c559faa commit 188b61b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cypress/integration/datatable_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
});

0 comments on commit 188b61b

Please sign in to comment.