-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T1187314 - DataGrid displays an incorrect row count in "aria-label" i…
…f there is no data after filtering (#25551) Co-authored-by: Andrey Dolzhikov <[email protected]>
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/devextreme/testing/testcafe/tests/dataGrid/accessibility/bugs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import createWidget from '../../../helpers/createWidget'; | ||
import url from '../../../helpers/getPageUrl'; | ||
import DataGrid from '../../../model/dataGrid'; | ||
|
||
fixture`Accessibility bugs` | ||
.page(url(__dirname, '../../container.html')); | ||
|
||
test('T1187314 - DataGrid displays an incorrect row count in "aria-label" if there is no data after filtering', async (t) => { | ||
const dataGrid = new DataGrid('#container'); | ||
|
||
await t | ||
.expect(dataGrid.getContainer().getAttribute('aria-label')) | ||
.eql('Data grid with 0 rows and 2 columns'); | ||
}).before(async () => createWidget('dxDataGrid', { | ||
keyExpr: 'id', | ||
dataSource: [{ | ||
id: 0, | ||
data: 'A', | ||
}], | ||
filterRow: { visible: true }, | ||
filterValue: ['id', '=', '1'], | ||
scrolling: { mode: 'infinite' }, | ||
})); |