Skip to content

Commit

Permalink
Merge pull request #890 from mikemadison13/npm-test
Browse files Browse the repository at this point in the history
DGC-000: Adding Pa11y.
  • Loading branch information
mikemadison13 committed Sep 10, 2020
2 parents f224d2d + 421ec2a commit 2dd485e
Show file tree
Hide file tree
Showing 14 changed files with 16,122 additions and 991 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@ drush/sites/.checksums

# GovCon 2018 Navigation Asset(s)
docroot/themes/custom/twentyeighteen/js/dist/navigation.js
docroot/themes/custom/twentyeighteen/npm-debug.log# Deprecation detector rules
docroot/themes/custom/twentyeighteen/npm-debug.log

# GovCon 2019 Navigation Asset(s)
docroot/themes/custom/twentynineteen/js/dist

# Deprecation detector rules
.rules

# BLT 11.2.0 update to support simulated deploys
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.9.1
10.x
3 changes: 1 addition & 2 deletions acquia-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ events:
- composer validate --no-check-all --ansi
- composer install --ansi
- source ${BLT_DIR}/scripts/pipelines/setup_env
- nvm install v8.9.1
- nvm install v13.8.0
- npm install -g npm
- npm install --global yarn
- validate:
type: script
script:
Expand Down
3 changes: 3 additions & 0 deletions blt/blt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ command-hooks:
frontend-assets:
dir: '${repo.root}'
command: ./blt/scripts/frontend-build.sh
frontend-test:
dir: ${repo.root}/docroot/themes/custom/twentynineteen
command: npm run tests
cm:
strategy: config-split
allow-overrides: true
24 changes: 24 additions & 0 deletions docroot/themes/custom/twentynineteen/.pa11yci.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @file
* Pa11y config.
*/

const isCI = process.env.CI;
const baseURL = isCI ? 'http://127.0.0.1:8888' : 'http://drupalgovcon.lndo.site:8080';

// Add urls for a11y testing here.
const urls = [
'/',
];

module.exports = {
defaults: {
standard: 'WCAG2AA',
hideElements: ['svg'],
ignore: ['notice', 'warning'],
chromeLaunchConfig: {
args: ['--no-sandbox']
}
},
urls: urls.map(url => `${baseURL}${url}`)
};
200 changes: 0 additions & 200 deletions docroot/themes/custom/twentynineteen/js/dist/drupal-navigation.js

This file was deleted.

0 comments on commit 2dd485e

Please sign in to comment.