From 466b6e3db5fcfe68c30f3632019e073d8786b39e Mon Sep 17 00:00:00 2001 From: dmt0 Date: Tue, 8 Oct 2019 20:56:40 -0400 Subject: [PATCH] test fix --- tests/cypress/tests/server/select_props_test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/cypress/tests/server/select_props_test.ts b/tests/cypress/tests/server/select_props_test.ts index f018dd180..5f20e2d2e 100644 --- a/tests/cypress/tests/server/select_props_test.ts +++ b/tests/cypress/tests/server/select_props_test.ts @@ -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]); @@ -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([]);