ember-a11y-testing icon indicating copy to clipboard operation
ember-a11y-testing copied to clipboard

feat: add qunit config

Open GreatWizard opened this issue 1 year ago • 1 comments

Features

Add QUnit config

QUnit and Testem integration

You can setup a new configuration checkbox in QUnit and Testem by using the setupQUnitA11yAudit When the checkbox is checked, it will set enableA11yAudit as a query param.

To use, import and invoke the setup function, passing in your QUnit instance:

// tests/test-helper.js
import Application from 'my-app/app';
import config from 'my-app/config/environment';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
import { setupGlobalA11yHooks, setupQUnitA11yAudit } from 'ember-a11y-testing/test-support';
setApplication(Application.create(config.APP));

setupGlobalA11yHooks(() => true);
setupQUnitA11yAudit(QUnit);

start();

Here is the result in Testem:

Capture d’écran 2022-10-20 à 14 28 12

GreatWizard avatar Oct 24 '22 08:10 GreatWizard