Skip to content

Commit

Permalink
chore(components): remove gulp-axe (#10766)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
joshblack and kodiakhq[bot] authored Feb 15, 2022
1 parent 0385aea commit 985f394
Show file tree
Hide file tree
Showing 22 changed files with 9 additions and 241 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/del-npm-3.0.0-e5f4cb556d-88192c1041.zip
Binary file not shown.
Binary file removed .yarn/cache/depd-npm-2.0.0-b6c51a4b43-abbe19c768.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/kew-npm-0.7.0-313b8dfdfe-f21ccf2456.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/tmp-npm-0.0.30-0fd2e9c3eb-d3e97e8e73.zip
Binary file not shown.
33 changes: 1 addition & 32 deletions packages/components/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ const cloptions = commander
.option('-ds, --use-dart-sass', 'Uses dart-sass instead of node-sass')
.parse(process.argv);

// Axe A11y Test
const axe = require('gulp-axe-webdriver');

const promisePortSassDevBuild = portscanner.findAPortNotInUse(
cloptions.portSassDevBuild,
cloptions.portSassDevBuild + 100
Expand Down Expand Up @@ -643,35 +640,7 @@ const startTest = (done) => {

gulp.task('test:unit', gulp.series('html:source', startTest));

const startAccessibilityTest = (done) => {
const componentName = cloptions.name;
const options = {
a11yCheckOptions: {
rules: {
'html-has-lang': { enabled: false },
bypass: { enabled: false },
'image-alt': { enabled: false },
},
},
verbose: true,
showOnlyViolations: true,
exclude: '.offleft, #flex-col, #flex-row',
tags: ['wcag2aa', 'wcag2a'],
folderOutputReport: !componentName ? 'tests/axe/allHtml' : 'tests/axe',
saveOutputIn: !componentName
? `a11y-html.json`
: `a11y-${componentName}.json`,
urls: !componentName
? ['http://localhost:3000']
: [`http://localhost:3000/component/${componentName}/`],
};

return axe(options, done);
};

gulp.task('test:a11y', gulp.series('sass:compiled', startAccessibilityTest));

gulp.task('test', gulp.parallel('test:unit', 'test:a11y'));
gulp.task('test', gulp.parallel('test:unit'));

// Watch Tasks
gulp.task('watch', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
"glob": "^7.1.2",
"globby": "^11.0.2",
"gulp": "^4.0.0",
"gulp-axe-webdriver": "^3.1.0",
"gulp-babel": "^8.0.0",
"gulp-header": "^2.0.0",
"gulp-jsdoc3": "^2.0.0",
Expand Down
Loading

0 comments on commit 985f394

Please sign in to comment.