Skip to content

Commit 39c70a6

Browse files
test: πŸ’ add missing a11y ignores for exisitng color issue
βœ… Closes: https://hashicorp.atlassian.net/browse/ICU-18460
1 parent 7f07419 commit 39c70a6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

β€Žui/admin/tests/acceptance/roles/edit-grants-test.jsβ€Ž

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { module, test } from 'qunit';
77
import { visit, click, currentURL } from '@ember/test-helpers';
88
import { setupApplicationTest } from 'admin/tests/helpers';
99
import * as selectors from './selectors';
10+
import { setRunOptions } from 'ember-a11y-testing/test-support';
1011

1112
module('Acceptance | roles/edit grants', function (hooks) {
1213
setupApplicationTest(hooks);
@@ -33,6 +34,15 @@ module('Acceptance | roles/edit grants', function (hooks) {
3334
});
3435

3536
test('can navigate to edit grants for roles with proper authorization', async function (assert) {
37+
setRunOptions({
38+
rules: {
39+
'color-contrast': {
40+
// [ember-a11y-ignore]: axe rule "color-contrast" automatically ignored on 2026-02-27
41+
enabled: false,
42+
},
43+
},
44+
});
45+
3646
await visit(urls.role);
3747

3848
assert.true(instances.role.authorized_actions.includes('set-grants'));
@@ -44,6 +54,15 @@ module('Acceptance | roles/edit grants', function (hooks) {
4454
});
4555

4656
test('cannot navigate to edit grants for roles without proper authorization', async function (assert) {
57+
setRunOptions({
58+
rules: {
59+
'color-contrast': {
60+
// [ember-a11y-ignore]: axe rule "color-contrast" automatically ignored on 2026-02-27
61+
enabled: false,
62+
},
63+
},
64+
});
65+
4766
instances.role.authorized_actions =
4867
instances.role.authorized_actions.filter(
4968
(action) => action !== 'set-grants',

0 commit comments

Comments
Β (0)