Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
ui/tests: remove manual a11yAudit calls
Browse files Browse the repository at this point in the history
This is now taken care of automatically :)
  • Loading branch information
jgwhite committed Nov 12, 2021
1 parent 7652630 commit 3990116
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions ui/tests/integration/components/app-item/build-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { getUnixTime, subMinutes } from 'date-fns';
import { a11yAudit } from 'ember-a11y-testing/test-support';
import { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';

module('Integration | Component | app-item/build', function (hooks) {
Expand Down Expand Up @@ -39,7 +38,6 @@ module('Integration | Component | app-item/build', function (hooks) {
<AppItem::Build @build={{this.build}} />
</ul>
`);
await a11yAudit();

assert.dom('[data-test-app-item-build]').includesText('v3');
assert.dom('[data-test-icon-type="logo-docker-color"]').exists();
Expand Down Expand Up @@ -69,7 +67,6 @@ module('Integration | Component | app-item/build', function (hooks) {
<AppItem::Build @build={{this.build}} />
</ul>
`);
await a11yAudit();

assert.dom('[data-test-app-item-build]').includesText('v3');
assert.dom('[data-test-icon-type="logo-docker-color"]').exists();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, focus } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { getUnixTime, subDays } from 'date-fns';
import { a11yAudit } from 'ember-a11y-testing/test-support';

module('Integration | Component | operation-status-indicator', function (hooks) {
setupRenderingTest(hooks);
Expand Down Expand Up @@ -36,7 +35,6 @@ module('Integration | Component | operation-status-indicator', function (hooks)
assert.dom('[data-test-icon-type]').hasAttribute('data-test-icon-type', 'logo-docker-color');
assert.dom('.icon-text-group').containsText('Deployed to Docker');
await focus('[data-test-operation-status-indicator]');
await a11yAudit();

assert.dom('[data-test-operation-status-indicator]').hasClass('timestamp--success');
assert.dom('[data-test-operation-status-indicator]').includesText('1 day ago');
Expand All @@ -63,7 +61,6 @@ module('Integration | Component | operation-status-indicator', function (hooks)
<OperationStatusIndicator @operation={{this.build}} @isDetailed={{true}}/>
`);
await focus('[data-test-operation-status-indicator]');
await a11yAudit();

assert.dom('[data-test-operation-status-indicator]').includesText('2 days ago');
});
Expand All @@ -89,8 +86,6 @@ module('Integration | Component | operation-status-indicator', function (hooks)
`);
await focus('[data-test-operation-status-indicator]');

await a11yAudit();

assert.dom('[data-test-tooltip]').doesNotExist();
assert.dom('[data-test-time-icon]').doesNotExist();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, focus } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { getUnixTime, subDays } from 'date-fns';
import { a11yAudit } from 'ember-a11y-testing/test-support';

module('Integration | Component | status-report-indicator', function (hooks) {
setupRenderingTest(hooks);
Expand All @@ -26,7 +25,6 @@ module('Integration | Component | status-report-indicator', function (hooks) {
<StatusReportIndicator @statusReport={{this.statusReport}} />
`);
await focus('[data-test-status-report-indicator]');
await a11yAudit();

assert.dom('[data-test-status-report-indicator]').hasClass('status-report-indicator--alive');
assert.dom('[data-test-status-report-indicator]').includesText('Starting…');
Expand All @@ -49,7 +47,6 @@ module('Integration | Component | status-report-indicator', function (hooks) {
<StatusReportIndicator @statusReport={{this.statusReport}} />
`);
await focus('[data-test-status-report-indicator]');
await a11yAudit();

assert.dom('[data-test-status-report-indicator]').hasClass('status-report-indicator--unknown');
assert.dom('[data-test-status-report-indicator]').includesText('Unknown');
Expand All @@ -71,7 +68,6 @@ module('Integration | Component | status-report-indicator', function (hooks) {
<StatusReportIndicator @statusReport={{this.statusReport}} />
`);
await focus('[data-test-status-report-indicator]');
await a11yAudit();

assert.dom('.ember-tooltip').doesNotIncludeText('Last checked');
});
Expand Down

0 comments on commit 3990116

Please sign in to comment.