mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-22 17:10:26 +03:00
Import full axe object to work around https://github.com/dequelabs/axe-core/issues/4458
This commit is contained in:
parent
679bf4dd3a
commit
e350412f0d
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import { run } from 'axe-core';
|
||||
import axe from 'axe-core';
|
||||
|
||||
type ContainerWrapper = { container: HTMLElement };
|
||||
|
||||
|
@ -6,7 +6,7 @@ type AccessibilityTestSubject = ContainerWrapper | Promise<ContainerWrapper>;
|
|||
|
||||
export const checkAccessibility = async (subject: AccessibilityTestSubject) => {
|
||||
const { container } = await subject;
|
||||
const { violations } = await run(container);
|
||||
const { violations } = await axe.run(container);
|
||||
|
||||
expect(violations).toStrictEqual([]);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue