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

Commit 466b6e3

Browse files
committed
test fix
1 parent 2372f39 commit 466b6e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/cypress/tests/server/select_props_test.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ describe('select row', () => {
137137
});
138138

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

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

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

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

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

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

168168
expectCellSelection([]);
169169

0 commit comments

Comments
 (0)