Skip to content

Commit d9c1879

Browse files
authored
fix(showcase): layout grid acceptance test (#3347)
1 parent 069f6df commit d9c1879

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
});

showcase/tests/acceptance/components/hds/layout/grid.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)