File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
ui/admin/tests/acceptance/roles Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { module, test } from 'qunit';
77import { visit , click , currentURL } from '@ember/test-helpers' ;
88import { setupApplicationTest } from 'admin/tests/helpers' ;
99import * as selectors from './selectors' ;
10+ import { setRunOptions } from 'ember-a11y-testing/test-support' ;
1011
1112module ( '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' ,
You canβt perform that action at this time.
0 commit comments