Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: not disable ally test rule anymore #3640

Merged
Show file tree
Hide file tree
Changes from 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const testA11y = () => {
const accessibilityScanResults = await new AxeBuilder({ page })
.include('.db-select')
.exclude('test-placeholder')
.disableRules('color-contrast')
.analyze();

expect(accessibilityScanResults.violations).toEqual([]);
Expand Down
9 changes: 2 additions & 7 deletions showcases/e2e/link/link-a11y.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ import { test } from '@playwright/test';
import { isStencil, runA11yCheckerTest, runAxeCoreTest } from '../default.ts';
import { lvl3 } from '../fixtures/variants';

const axeDisableRules = isStencil(process.env.showcase)
? ['color-contrast']
: [];

const aCheckerDisableRules = isStencil(process.env.showcase)
? ['text_contrast_sufficient', 'aria_attribute_valid']
: ['aria_attribute_valid']; // TODO: This is a false positive -> add an issue in https://github.com/IBMa/equal-access

test.describe('DBLink', () => {
runAxeCoreTest({ path: '02/link', axeDisableRules });
mfranzke marked this conversation as resolved.
Show resolved Hide resolved
runAxeCoreTest({ path: '02/link', color: lvl3, axeDisableRules });
runAxeCoreTest({ path: '02/link', density: 'functional', axeDisableRules });
runAxeCoreTest({ path: '02/link', color: lvl3 });
runAxeCoreTest({ path: '02/link', density: 'functional' });
runA11yCheckerTest({ path: '02/link', aCheckerDisableRules });
});
Loading