We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81aee4e commit 7d0b889Copy full SHA for 7d0b889
1 file changed
e2e/testcafe-devextreme/helpers/accessibility/test.ts
@@ -45,7 +45,16 @@ export const testAccessibility = <TComponentOptions = unknown>(
45
46
optionConfigurations.forEach((optionConfiguration, index) => {
47
test(`${component}: test with axe #${index}`, async (t) => {
48
- await a11yCheck(t, a11yCheckConfig, selector, optionConfiguration);
+ const currentA11yCheckConfig = { ...a11yCheckConfig };
49
+
50
+ if (component === 'dxTagBox' && (optionConfiguration as any).disabled) {
51
+ currentA11yCheckConfig.rules = {
52
+ ...currentA11yCheckConfig.rules,
53
+ 'color-contrast': { enabled: false },
54
+ };
55
+ }
56
57
+ await a11yCheck(t, currentA11yCheckConfig, selector, optionConfiguration);
58
}).before(async (t) => {
59
await createWidget(
60
component,
0 commit comments