Skip to content

Commit

Permalink
test: add accessibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
remadex committed Nov 29, 2024
1 parent 585c24e commit 7311ec0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { click, render, settled } from '@ember/test-helpers';
import { ImmerChangeset } from 'ember-immer-changeset';
import { setupIntl } from 'ember-intl/test-support';
import TpkValidationSelect from '@triptyk/ember-input-validation/components/prefabs/tpk-validation-select';
import { a11yAudit } from 'ember-a11y-testing/test-support';



Expand Down Expand Up @@ -129,5 +130,12 @@ module(
await renderComponent({ options: [], changeset, disabled: true });
assert.dom(`.ember-basic-dropdown-trigger`).hasAttribute('aria-disabled', 'true');
});

test('Accessibility', async function (assert) {
assert.expect(0);
const changeset = await setChangeset();
await renderComponent({ options: [], changeset, disabled: true });
await a11yAudit();
});
},
);

0 comments on commit 7311ec0

Please sign in to comment.