Skip to content

Commit

Permalink
Accessibility audit added
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Jul 21, 2022
1 parent efb76b6 commit ff79a48
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/tests/acceptance/services-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ import percySnapshot from '@percy/ember';
import Services from 'nomad-ui/tests/pages/services';
import Layout from 'nomad-ui/tests/pages/layout';
import defaultScenario from '../../mirage/scenarios/default';
import a11yAudit from 'nomad-ui/tests/helpers/a11y-audit';

module('Acceptance | services', function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);

test('it passes an accessibility audit', async function (assert) {
assert.expect(1);
defaultScenario(server);
await Services.visit();
await a11yAudit(assert);
});

module('traversal', function () {
test('visiting /services by url', async function (assert) {
defaultScenario(server);
Expand All @@ -19,6 +27,7 @@ module('Acceptance | services', function (hooks) {
});

test('main menu correctly takes you to services', async function (assert) {
assert.expect(1);
defaultScenario(server);
await visit('/');
await Layout.gutter.visitServices();
Expand Down

0 comments on commit ff79a48

Please sign in to comment.