Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/testcafe_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
matrix:
ARGS: [
{ componentFolder: "accessibility", name: "accessibility" },
{ componentFolder: "accessibility - material", name: "accessibility", theme: 'material.blue.light' },
{ componentFolder: "common", name: "common" },

{ name: "generic", theme: 'generic.light' },
Expand Down
16 changes: 8 additions & 8 deletions apps/demos/testing/accessibility-unsupported-components.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const accessibilityUnsupportedComponents = [
'Accordion',
'Charts',
'Diagram',
'FileManager',
'Gantt',
'Map',
'Scheduler',
'PivotGrid',
// 'Accordion',
// 'Charts',
// 'Diagram',
// 'FileManager',
// 'Gantt',
// 'Map',
// 'Scheduler',
// 'PivotGrid',
];
2 changes: 1 addition & 1 deletion apps/demos/testing/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Object.values(FRAMEWORKS).forEach((approach) => {
const specificSkipRules = getTestSpecificSkipRules(testName);
const options = { rules: {} };

[...COMMON_SKIP_RULES, ...specificSkipRules].forEach((ruleName) => {
[/*...COMMON_SKIP_RULES*/, ...specificSkipRules].forEach((ruleName) => {
options.rules[ruleName] = { enabled: false };
});

Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/helpers/accessibility/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface A11yCheckOptions extends RunOptions {

const defaultOptions = {
rules: {
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const created = async (t: TestController, optionConfiguration): Promise<void> =>

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = isMaterialBased() ? {
// NOTE: color-contrast issues in Material
runOnly: isMaterial() ? '' : 'color-contrast',
rules: { 'color-contrast': { enabled: !isMaterial() } },
rules: { 'color-contrast': { enabled: true } },
} : {};

const configuration: Configuration = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const buttonsOptions: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const created = async (t: TestController, optionConfiguration): Promise<void> =>
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
// NOTE: false positive in isMaterialBased
'nested-interactive': { enabled: !isMaterialBased() },
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const optionsWithSimpleItems: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const options: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
// NOTE: empty-table-header issues
'empty-table-header': { enabled: false },
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('column chooser in \'dragAndDrop\' mode', async (t) => {
await cardView.apiShowColumnChooser();

const a11yCheckConfig = {
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};
await a11yCheck(t, a11yCheckConfig, CARD_VIEW_SELECTOR);
}).before(async () => createWidget('dxCardView', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test('headerPanel dragging column when it has sorting and headerFilter', async (
await triggerDragStart(columnElement);

const a11yCheckConfig = {
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};
await a11yCheck(t, a11yCheckConfig, CARD_VIEW_SELECTOR);
}).before(async () => createWidget('dxCardView', {
Expand Down Expand Up @@ -47,7 +47,7 @@ test('dropzone appear in headerPanel when drag from columnChooser a column', asy
await t.wait(500); // wait for dropzone animation to finish

const a11yCheckConfig = {
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};
await a11yCheck(t, a11yCheckConfig, CARD_VIEW_SELECTOR);
}).before(async () => createWidget('dxCardView', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('FilterPanel and FilterBuilderPopup', async (t) => {
await t.click(cardView.getFilterPanel().getIconFilter().element);

const a11yCheckConfig = {
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};
await a11yCheck(t, a11yCheckConfig, CARD_VIEW_SELECTOR);
}).before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fixture.disablePageReloads`CardView - HeaderPanel`
const CARD_VIEW_SELECTOR = '#container';
const HEADER_PANEL_SELECTOR = `${CARD_VIEW_SELECTOR} .dx-cardview-headers`;
const a11yCheckConfig = {
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

test('Default render', async (t) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const DRAG_MOVE_Y_COEFFICIENT = 1;

const a11yCheckConfig = {
rules: {
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
// NOTE: Draggable template is outside the role="main" landmark
region: { enabled: false },
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const created = async (t: TestController): Promise<void> => {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/checkBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const availabilityConfiguration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/colorBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const buttonsOptions: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const created = async (t: TestController): Promise<void> => {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ test('Filter panel - popup with filter builder', async (t) => {
...a11yCheckConfig,
runOnly: '',
rules: {
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
});
}).before(async () => createWidget('dxDataGrid', {
Expand Down Expand Up @@ -341,7 +341,7 @@ test('Search panel - highlight', async (t) => {
...a11yCheckConfig,
runOnly: '',
rules: {
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
}, DATA_GRID_SELECTOR);
}).before(async () => createWidget('dxDataGrid', {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/dateBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const created = async (t: TestController, optionConfiguration): Promise<void> =>
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const commonOptions: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/dropDownBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const buttonsOptions: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const deferredConfiguration: Configuration = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const options: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const availabilityConfiguration: Configuration = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ elements.forEach(({
{
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
},
'#parentContainer',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const requiredFieldsOptions: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/gallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const created = async (t: TestController): Promise<void> => {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const optionsWithSimpleItems: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/loadPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const options: Options<Properties> = {
const a11yCheckConfig = {
rules: {
// NOTE: color-contrast issues
'color-contrast': { enabled: false },
'color-contrast': { enabled: true },
},
};

Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const created = async (t: TestController, optionConfiguration): Promise<void> =>

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/multiView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/numberBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/accessibility/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const options: Options<any> = {

const a11yCheckConfig = {
// NOTE: color-contrast issues
rules: { 'color-contrast': { enabled: false } },
rules: { 'color-contrast': { enabled: true } },
};

const configuration: Configuration = {
Expand Down
3 changes: 1 addition & 2 deletions e2e/testcafe-devextreme/tests/accessibility/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = isMaterialBased() ? {
// NOTE: color-contrast issues in Material
runOnly: isMaterial() ? '' : 'color-contrast',
rules: { 'color-contrast': { enabled: !isMaterial() } },
rules: { 'color-contrast': { enabled: true } },
} : {};

const configuration: Configuration = {
Expand Down
3 changes: 1 addition & 2 deletions e2e/testcafe-devextreme/tests/accessibility/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const options: Options<Properties> = {

const a11yCheckConfig = isMaterialBased() ? {
// NOTE: color-contrast issues in Material
runOnly: isMaterial() ? '' : 'color-contrast',
rules: { 'color-contrast': { enabled: !isMaterial() } },
rules: { 'color-contrast': { enabled: true } },
} : {};

const visibleConfiguration: Configuration = {
Expand Down
Loading
Loading