Skip to content

Commit

Permalink
Move audit to existing test and restore failure
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Jul 28, 2020
1 parent 4095504 commit 70443dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ui/app/templates/components/global-header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="navbar-item is-gutter">
<RegionSwitcher @decoration="is-outlined" />
</div>
<nav class="breadcrumb is-large" title="breadcrumb navigation">
<nav class="breadcrumb is-large">
<ul>
{{yield}}
</ul>
Expand Down
12 changes: 1 addition & 11 deletions ui/tests/acceptance/clients-list-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ module('Acceptance | clients list', function(hooks) {
window.localStorage.clear();
});

test('it passes an accessibility audit', async function(assert) {
const nodesCount = ClientsList.pageSize + 1;

server.createList('node', nodesCount);
server.createList('agent', 1);

await ClientsList.visit();
await a11yAudit();
assert.ok(true, 'a11y audit passes');
});

test('/clients should list one page of clients', async function(assert) {
// Make sure to make more nodes than 1 page to assert that pagination is working
const nodesCount = ClientsList.pageSize + 1;
Expand All @@ -44,6 +33,7 @@ module('Acceptance | clients list', function(hooks) {
});

assert.equal(document.title, 'Clients - Nomad');
await a11yAudit();
});

test('each client record should show high-level info of the client', async function(assert) {
Expand Down

0 comments on commit 70443dd

Please sign in to comment.