Add more accessibility tests

This commit is contained in:
Alejandro Celaya
2023-09-30 10:45:52 +02:00
parent 6d1d3c021a
commit 7a216a195a
29 changed files with 117 additions and 33 deletions

View File

@@ -2,6 +2,7 @@ import type { ShortUrlCreationSettings as ShortUrlsSettings } from '@shlinkio/sh
import { screen } from '@testing-library/react';
import { fromPartial } from '@total-typescript/shoehorn';
import { ShortUrlCreationSettings } from '../../src/settings/ShortUrlCreationSettings';
import { checkAccessibility } from '../__helpers__/accessibility';
import { renderWithEvents } from '../__helpers__/setUpTest';
describe('<ShortUrlCreationSettings />', () => {
@@ -13,6 +14,8 @@ describe('<ShortUrlCreationSettings />', () => {
/>,
);
it('passes a11y checks', () => checkAccessibility(setUp()));
it.each([
[{ validateUrls: true }, true],
[{ validateUrls: false }, false],