Skip to content

Commit 9099a51

Browse files
skip disabled check for TagBox
1 parent 6fd1ff8 commit 9099a51

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
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 } as A11yCheckOptions;
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,

e2e/testcafe-devextreme/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { getCurrentTheme } from './helpers/themeUtils';
1414

1515
const LAUNCH_RETRY_ATTEMPTS = 3;
1616
const LAUNCH_RETRY_TIMEOUT = 10000;
17-
const FAILED_TESTS_RETRY_ATTEMPTS = 1;
17+
const FAILED_TESTS_RETRY_ATTEMPTS = 0;
1818

1919
const wait = async (
2020
timeout: number,

0 commit comments

Comments
 (0)