(HACK WEEK 2025) refactor: 💡 remove explicit a11yAudit usage (#2936)

* refactor: 💡 remove explicit usage of a11yAudit

* Delete a11yAudit method from readme

---------

Co-authored-by: calcaide <ccorvo@hashicorp.com>
This commit is contained in:
Cameron Pereraandcalcaide committed 2025-08-19 10:51:44 -05:00
1 parent 3918f82e14
commit 42013a919f
66 files changed
+11 -276

No files matched your search

@@ -7,7 +7,6 @@ import { module, test } from 'qunit';
import { visit, currentURL, click } from '@ember/test-helpers';
import { setupApplicationTest } from 'admin/tests/helpers';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import { Response } from 'miragejs';
import { authenticateSession } from 'ember-simple-auth/test-support';
import {
@@ -69,7 +68,6 @@ module('Acceptance | users | accounts', function (hooks) {
await visit(urls.user);
await click(commonSelectors.HREF(urls.accounts));
await a11yAudit();
assert.strictEqual(currentURL(), urls.accounts);
assert.dom(commonSelectors.TABLE_ROWS).exists({ count: accountsCount });
@@ -171,7 +169,6 @@ module('Acceptance | users | accounts', function (hooks) {
await click(selectors.MANAGE_DROPDOWN_USER);
await click(selectors.MANAGE_DROPDOWN_USER_ADD_ACCOUNTS);
await a11yAudit();
assert.strictEqual(currentURL(), urls.addAccounts);
});
@@ -8,7 +8,6 @@ import { visit, currentURL, click } from '@ember/test-helpers';
import { setupApplicationTest } from 'admin/tests/helpers';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { setupIndexedDb } from 'api/test-support/helpers/indexed-db';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import { authenticateSession } from 'ember-simple-auth/test-support';
import * as commonSelectors from 'admin/tests/helpers/selectors';
@@ -48,10 +47,8 @@ module('Acceptance | users | read', function (hooks) {
test('visiting users', async function (assert) {
await visit(urls.orgScope);
await a11yAudit();
await click(commonSelectors.HREF(urls.users));
await a11yAudit();
assert.strictEqual(currentURL(), urls.users);
});
@@ -60,7 +57,6 @@ module('Acceptance | users | read', function (hooks) {
await visit(urls.users);
await click(commonSelectors.HREF(urls.user));
await a11yAudit();
assert.strictEqual(currentURL(), urls.user);
});