Skip to content

Commit

Permalink
Merge pull request #228 from alphagov/fix-accessibility-test
Browse files Browse the repository at this point in the history
Fixes to ensure accessibility tests run
  • Loading branch information
gemmaleigh authored Sep 12, 2017
2 parents 5cadd1a + 8c45d1f commit 7721ec6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"homepage": "https://github.com/alphagov/govuk-frontend#readme",
"scripts": {
"start": "gulp dev --destination 'public'",
"test": "standard && gulp test",
"test": "standard && gulp compile:components --destination 'public' && gulp test",
"heroku": "gulp compile:components --destination 'public' && gulp copy-assets --destination 'public' && node app.js"
},
"devDependencies": {
Expand Down
Empty file.
1 change: 1 addition & 0 deletions src/components/file-upload/file-upload.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<input type="file">
4 changes: 2 additions & 2 deletions tasks/gulp/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const axe = require('gulp-axe-webdriver')
// Check HTML using Tenon ----------------
// ---------------------------------------
gulp.task('html:tenon', function () {
return gulp.src('src/components/**/*.html', {read: false})
return gulp.src('public/components/**/*.html', {read: false})
.pipe(gtenon({
config: 'config/tenon.json',
snippet: true, // include errorSnippet in the console output
Expand All @@ -25,7 +25,7 @@ gulp.task('html:axe', (done) => {
let options = {
browser: 'phantomjs',
saveOutputIn: 'axeReport.json',
urls: ['src/components/**/*.html'],
urls: ['public/components/**/*.html'],
// https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md
a11yCheckOptions: {
'rules': {
Expand Down

0 comments on commit 7721ec6

Please sign in to comment.