-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TileView: Fix aria-activedescendant setting (T1217255)
- Loading branch information
1 parent
4cdaaa5
commit d720f2f
Showing
4 changed files
with
61 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
35 changes: 35 additions & 0 deletions
35
packages/devextreme/testing/testcafe/tests/accessibility/tileView.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,35 @@ | ||
import url from '../../helpers/getPageUrl'; | ||
import { clearTestPage } from '../../helpers/clearPage'; | ||
import { testAccessibility, Configuration } from '../../helpers/accessibility/test'; | ||
import { Options } from '../../helpers/generateOptionMatrix'; | ||
import { Properties } from '../../../../js/ui/tile_view.d'; | ||
|
||
fixture.disablePageReloads`Accessibility` | ||
.page(url(__dirname, '../container.html')) | ||
.afterEach(async () => clearTestPage()); | ||
|
||
const options: Options<Properties> = { | ||
items: [[{ text: 'test 1' }]], | ||
focusStateEnabled: [true], | ||
}; | ||
|
||
const created = async (t: TestController): Promise<void> => { | ||
await t.pressKey('tab'); | ||
}; | ||
|
||
const a11yCheckConfig = { | ||
rules: { | ||
'color-contrast': { | ||
enabled: false, | ||
}, | ||
}, | ||
}; | ||
|
||
const configuration: Configuration = { | ||
component: 'dxTileView', | ||
a11yCheckConfig, | ||
options, | ||
created, | ||
}; | ||
|
||
testAccessibility(configuration); |
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