Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmt0 committed Oct 9, 2019
1 parent 2372f39 commit 466b6e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/cypress/tests/server/select_props_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ describe('select row', () => {
});

it('selection props are correct, with filter', () => {
DashTable.getSelect(0).within(() => cy.get('input').click());
DashTable.getSelect(1).within(() => cy.get('input').click());
DashTable.getSelect(2).within(() => cy.get('input').click());
DashTable.getSelect(0).within(() => cy.get('input[type=text]').click());
DashTable.getSelect(1).within(() => cy.get('input[type=text]').click());
DashTable.getSelect(2).within(() => cy.get('input[type=text]').click());

cy.get('tr th.column-0.dash-filter input').type(`is even${Key.Enter}`);
cy.get('tr th.column-0.dash-filter input[type=text]').type(`is even${Key.Enter}`);

// filtered-out data is still selected
expectArray('#selected_rows_container', [0, 1, 2]);
Expand All @@ -157,13 +157,13 @@ describe('select row', () => {
});

it('selection props are correct, with filter & sort', () => {
DashTable.getSelect(0).within(() => cy.get('input').click());
DashTable.getSelect(1).within(() => cy.get('input').click());
DashTable.getSelect(0).within(() => cy.get('input[type=text]').click());
DashTable.getSelect(1).within(() => cy.get('input[type=text]').click());

DashTable.getCell(3, 1).click();
expectCellSelection([3], [3003], [1], [1]);

cy.get('tr th.column-0.dash-filter input').type(`is even${Key.Enter}`);
cy.get('tr th.column-0.dash-filter input[type=text]').type(`is even${Key.Enter}`);

expectCellSelection([]);

Expand Down

0 comments on commit 466b6e3

Please sign in to comment.