File tree Expand file tree Collapse file tree 2 files changed +30
-21
lines changed
showcase/tests/acceptance/components/hds/layout Expand file tree Collapse file tree 2 files changed +30
-21
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) HashiCorp, Inc.
3+ * SPDX-License-Identifier: MPL-2.0
4+ */
5+
6+ import { module , test } from 'qunit' ;
7+ import { visit } from '@ember/test-helpers' ;
8+ import { setupApplicationTest } from 'showcase/tests/helpers' ;
9+ import { a11yAudit } from 'ember-a11y-testing/test-support' ;
10+
11+ module ( 'Acceptance | layouts/grid' , function ( hooks ) {
12+ setupApplicationTest ( hooks ) ;
13+
14+ test ( 'Layout/grid page passes automated a11y checks' , async function ( assert ) {
15+ let axeOptions = {
16+ rules : {
17+ 'color-contrast' : {
18+ enabled : false ,
19+ selectors : [ [ '.shw-placeholder' ] ] ,
20+ } ,
21+ } ,
22+ } ;
23+
24+ await visit ( '/layouts/grid' ) ;
25+
26+ await a11yAudit ( axeOptions ) ;
27+
28+ assert . ok ( true , 'a11y automation audit passed' ) ;
29+ } ) ;
30+ } ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments