Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Kumar <[email protected]>
  • Loading branch information
abhinavkrin committed Mar 27, 2024
1 parent ac43d97 commit 88e8acc
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions apps/meteor/tests/e2e/utils/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ const PATH_NYC_OUTPUT = path.join(process.cwd(), '.nyc_output');
export type AnyObj = { [key: string]: any };

export type BaseTest = {
api: {
recreateContext(): Promise<void>;
login(credentials: { username: string; password: string }): Promise<APIRequestContext>;
get(uri: string, params?: AnyObj, prefix?: string): Promise<APIResponse>;
post(uri: string, data: AnyObj, prefix?: string): Promise<APIResponse>;
put(uri: string, data: AnyObj, prefix?: string): Promise<APIResponse>;
delete(uri: string, params?: AnyObj, prefix?: string): Promise<APIResponse>;
};
api: {
recreateContext(): Promise<void>;
login(credentials: { username: string; password: string }): Promise<APIRequestContext>;
get(uri: string, params?: AnyObj, prefix?: string): Promise<APIResponse>;
post(uri: string, data: AnyObj, prefix?: string): Promise<APIResponse>;
put(uri: string, data: AnyObj, prefix?: string): Promise<APIResponse>;
delete(uri: string, params?: AnyObj, prefix?: string): Promise<APIResponse>;
};
makeAxeBuilder: () => AxeBuilder;
};
declare global {
Expand Down Expand Up @@ -116,6 +116,7 @@ export const test = baseTest.extend<BaseTest>({
},
makeAxeBuilder: async ({ page }, use) => {
const SELECT_KNOW_ISSUES = ['aria-hidden-focus', 'nested-interactive']

const makeAxeBuilder = () => new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).include('body').disableRules([...SELECT_KNOW_ISSUES]);
await use(makeAxeBuilder);
}
Expand Down

0 comments on commit 88e8acc

Please sign in to comment.