Skip to content

Commit

Permalink
test(ui-library): add a11y tests
Browse files Browse the repository at this point in the history
  • Loading branch information
faselbaum committed Mar 28, 2024
1 parent 5f1c74f commit dee3b7f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/ui-library/src/components/counter/index.test.a11y.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import '@boiler/ui-library/dist/';

import { BlrCounterRenderFunction } from './renderFunction';
import type { BlrCounterType } from '.';

import { combineProperties } from '../../utils/test/combine-properties';
import { runA11yCombinationTests } from '../../utils/test/run-combination-test';

const propertyCombinations = combineProperties<BlrCounterType>({
maxValue: [0, 100],
sizeVariant: ['sm', 'md', 'lg', undefined],
theme: ['Dark', 'Light'],
value: [0, 50, 100],
variant: ['error', 'neutral', 'warn'],
});

describe('blr-counter', () => {
runA11yCombinationTests({
combinationsList: propertyCombinations,
componentRenderer: BlrCounterRenderFunction,
});
});

0 comments on commit dee3b7f

Please sign in to comment.