intern-a11y
Version:
Intern-a11y. An accessibility testing helper for Intern.
41 lines (40 loc) • 1.19 kB
TypeScript
/// <reference types="es6-promise" />
import { A11yResults } from '../common';
import Command = require('leadfoot/Command');
export interface AxeTestOptions {
config?: {
branding?: {
brand?: string;
application?: string;
};
reporter?: 'v1' | 'v2';
checks?: {
id: string;
evaluate: Function;
after?: Function;
options?: Object;
matches?: string;
enabled?: boolean;
}[];
rules?: {
id: string;
selector?: string;
excludeHidden?: boolean;
enabled?: boolean;
pageLevel?: boolean;
any?: string[];
all?: string[];
none?: string[];
tags?: string[];
matches?: string;
}[];
};
context?: string;
}
export interface AxeRunTestOptions extends AxeTestOptions {
remote: Command<any>;
source: string;
waitFor?: number;
}
export declare function createChecker(options?: AxeTestOptions): (this: Command<any>) => Command<A11yResults>;
export declare function check(options?: AxeRunTestOptions): Promise<any>;