Skip to content

Commit

Permalink
deps: replace axe-core with @bpmn-io/a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jun 21, 2024
1 parent f604b83 commit 5502a0b
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 26 deletions.
37 changes: 30 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
],
"devDependencies": {
"@babel/core": "^7.20.2",
"@bpmn-io/a11y": "^0.1.0",
"@rollup/plugin-commonjs": "^26.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-terser": "^0.4.4",
"axe-core": "^4.9.0",
"babel-loader": "^9.1.0",
"babel-plugin-istanbul": "^6.1.1",
"bio-dts": "^0.11.0",
Expand Down
8 changes: 2 additions & 6 deletions test/spec/ModelerSpec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axe from 'axe-core';
import { expectToBeAccessible } from '@bpmn-io/a11y';

import Modeler from 'lib/Modeler';
import Viewer from 'lib/Viewer';
Expand Down Expand Up @@ -931,12 +931,8 @@ describe('Modeler', function() {
const xml = require('../fixtures/bpmn/simple.bpmn');
await createModeler(xml);

// when
const results = await axe.run(container);

// then
expect(results.passes).to.be.not.empty;
expect(results.violations).to.be.empty;
await expectToBeAccessible(container);
});

});
Expand Down
8 changes: 2 additions & 6 deletions test/spec/NavigatedViewerSpec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axe from 'axe-core';
import { expectToBeAccessible } from '@bpmn-io/a11y';

import NavigatedViewer from 'lib/NavigatedViewer';

Expand Down Expand Up @@ -111,12 +111,8 @@ describe('NavigatedViewer', function() {
const xml = require('../fixtures/bpmn/simple.bpmn');
await createViewer(container, NavigatedViewer, xml);

// when
const results = await axe.run(container);

// then
expect(results.passes).to.be.not.empty;
expect(results.violations).to.be.empty;
await expectToBeAccessible(container);
});

});
Expand Down
8 changes: 2 additions & 6 deletions test/spec/ViewerSpec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axe from 'axe-core';
import { expectToBeAccessible } from '@bpmn-io/a11y';

import TestContainer from 'mocha-test-container-support';

Expand Down Expand Up @@ -1806,12 +1806,8 @@ describe('Viewer', function() {
const xml = require('../fixtures/bpmn/simple.bpmn');
await createViewer(container, Viewer, xml);

// when
const results = await axe.run(container);

// then
expect(results.passes).to.be.not.empty;
expect(results.violations).to.be.empty;
await expectToBeAccessible(container);
});

});
Expand Down

0 comments on commit 5502a0b

Please sign in to comment.