Skip to content

Commit 0bccf15

Browse files
Demos: test color-contrast rule
1 parent f07190d commit 0bccf15

57 files changed

Lines changed: 66 additions & 71 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export const accessibilityUnsupportedComponents = [
2-
'Accordion',
3-
'Charts',
4-
'Diagram',
5-
'FileManager',
6-
'Gantt',
7-
'Map',
8-
'Scheduler',
9-
'PivotGrid',
2+
// 'Accordion',
3+
// 'Charts',
4+
// 'Diagram',
5+
// 'FileManager',
6+
// 'Gantt',
7+
// 'Map',
8+
// 'Scheduler',
9+
// 'PivotGrid',
1010
];

apps/demos/testing/common.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Object.values(FRAMEWORKS).forEach((approach) => {
163163
const specificSkipRules = getTestSpecificSkipRules(testName);
164164
const options = { rules: {} };
165165

166-
[...COMMON_SKIP_RULES, ...specificSkipRules].forEach((ruleName) => {
166+
[/*...COMMON_SKIP_RULES*/, ...specificSkipRules].forEach((ruleName) => {
167167
options.rules[ruleName] = { enabled: false };
168168
});
169169

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface A11yCheckOptions extends RunOptions {
88

99
const defaultOptions = {
1010
rules: {
11-
'color-contrast': { enabled: false },
11+
'color-contrast': { enabled: true },
1212
},
1313
};
1414

e2e/testcafe-devextreme/tests/accessibility/accordion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const created = async (t: TestController, optionConfiguration): Promise<void> =>
3535

3636
const a11yCheckConfig = {
3737
// NOTE: color-contrast issues
38-
rules: { 'color-contrast': { enabled: false } },
38+
rules: { 'color-contrast': { enabled: true } },
3939
};
4040

4141
const configuration: Configuration = {

e2e/testcafe-devextreme/tests/accessibility/actionSheet.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ const options: Options<Properties> = {
2424

2525
const a11yCheckConfig = isMaterialBased() ? {
2626
// NOTE: color-contrast issues in Material
27-
runOnly: isMaterial() ? '' : 'color-contrast',
28-
rules: { 'color-contrast': { enabled: !isMaterial() } },
27+
rules: { 'color-contrast': { enabled: true } },
2928
} : {};
3029

3130
const configuration: Configuration = {

e2e/testcafe-devextreme/tests/accessibility/autocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const buttonsOptions: Options<Properties> = {
2828
const a11yCheckConfig = {
2929
rules: {
3030
// NOTE: color-contrast issues
31-
'color-contrast': { enabled: false },
31+
'color-contrast': { enabled: true },
3232
},
3333
};
3434

e2e/testcafe-devextreme/tests/accessibility/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const created = async (t: TestController, optionConfiguration): Promise<void> =>
3636
const a11yCheckConfig = {
3737
rules: {
3838
// NOTE: color-contrast issues
39-
'color-contrast': { enabled: false },
39+
'color-contrast': { enabled: true },
4040
// NOTE: false positive in isMaterialBased
4141
'nested-interactive': { enabled: !isMaterialBased() },
4242
},

e2e/testcafe-devextreme/tests/accessibility/buttonGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const optionsWithSimpleItems: Options<Properties> = {
2727
const a11yCheckConfig = {
2828
rules: {
2929
// NOTE: color-contrast issues
30-
'color-contrast': { enabled: false },
30+
'color-contrast': { enabled: true },
3131
},
3232
};
3333

e2e/testcafe-devextreme/tests/accessibility/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const options: Options<Properties> = {
1818
const a11yCheckConfig = {
1919
rules: {
2020
// NOTE: color-contrast issues
21-
'color-contrast': { enabled: false },
21+
'color-contrast': { enabled: true },
2222
// NOTE: empty-table-header issues
2323
'empty-table-header': { enabled: false },
2424
},

e2e/testcafe-devextreme/tests/accessibility/cardView/columnChooser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('column chooser in \'dragAndDrop\' mode', async (t) => {
4141
await cardView.apiShowColumnChooser();
4242

4343
const a11yCheckConfig = {
44-
rules: { 'color-contrast': { enabled: false } },
44+
rules: { 'color-contrast': { enabled: true } },
4545
};
4646
await a11yCheck(t, a11yCheckConfig, CARD_VIEW_SELECTOR);
4747
}).before(async () => createWidget('dxCardView', {

0 commit comments

Comments
 (0)