Skip to content

Commit 7d0b889

Browse files
skip disabled check for TagBox
1 parent 81aee4e commit 7d0b889

File tree

1 file changed

+10
-1
lines changed
  • e2e/testcafe-devextreme/helpers/accessibility

1 file changed

+10
-1
lines changed

e2e/testcafe-devextreme/helpers/accessibility/test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,16 @@ export const testAccessibility = <TComponentOptions = unknown>(
4545

4646
optionConfigurations.forEach((optionConfiguration, index) => {
4747
test(`${component}: test with axe #${index}`, async (t) => {
48-
await a11yCheck(t, a11yCheckConfig, selector, optionConfiguration);
48+
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);
4958
}).before(async (t) => {
5059
await createWidget(
5160
component,

0 commit comments

Comments
 (0)