Skip to content

Commit

Permalink
chore: Test against ARIA practices (dequelabs#3144)
Browse files Browse the repository at this point in the history
* chore: Test against ARIA practices

* test: run APG#main nightly

* chore: sort out linting

* chore: bump CI image

* chore: Ready for review

* chore: tweaks

* chore: remove express

* chore: undo unintended change

* Apply suggestions from code review

Co-authored-by: Steven Lambert <[email protected]>

Co-authored-by: Steven Lambert <[email protected]>
  • Loading branch information
WilcoFiers and straker committed Nov 9, 2021
1 parent 6f7e183 commit ed9ef99
Show file tree
Hide file tree
Showing 6 changed files with 862 additions and 108 deletions.
34 changes: 31 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defaults: &defaults

unix_box: &unix_box
docker:
- image: circleci/node:10-browsers
- image: circleci/node:16-browsers

win_box: &win_box
executor:
Expand Down Expand Up @@ -119,6 +119,16 @@ jobs:
- run: npm run build
- run: npm run test:act

# Run ARIA practices test cases
test_aria_practices:
<<: *defaults
<<: *unix_box
steps:
- checkout
- <<: *restore_dependency_cache_unix
- run: npm run build
- run: npm run test:apg

# Test locale files
test_locales:
<<: *defaults
Expand All @@ -140,7 +150,7 @@ jobs:
- run: npm run test:virtual-rules

# Run the test suite for nightly builds.
test_nightly:
test_nightly_chrome:
<<: *defaults
<<: *unix_box
steps:
Expand All @@ -155,6 +165,18 @@ jobs:
CHROME_BIN="$(which google-chrome-beta)" && echo "CHROME_BIN: $CHROME_BIN"
npm run test -- --browsers Chrome,FirefoxNightly
# Run the test suite for nightly builds.
test_nightly_aria_practices:
<<: *defaults
<<: *unix_box
steps:
- checkout
- <<: *restore_dependency_cache_unix
- run: npm run build
# install ARIA practices
- run: npm install w3c/aria-practices#main
- run: npm run test:apg

# Test api docs can be built
build_api_docs:
<<: *defaults
Expand Down Expand Up @@ -269,6 +291,9 @@ workflows:
- test_act:
requires:
- test_unix
- test_aria_practices:
requires:
- test_unix
- test_locales:
requires:
- test_unix
Expand Down Expand Up @@ -354,6 +379,9 @@ workflows:
- develop
jobs:
- dependencies_unix
- test_nightly:
- test_nightly_chrome:
requires:
- dependencies_unix
- test_nightly_aria_practices:
requires:
- dependencies_unix
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,17 @@ module.exports = {
'no-use-before-define': 'off'
}
},
{
files: [
'test/aria-practices/**/*.js'
],
env: {
mocha: true
}
},
{
files: ['test/**/*.js'],
excludedFiles: 'test/aria-practices/**/*.js',
parserOptions: {
ecmaVersion: 5
},
Expand Down
Loading

0 comments on commit ed9ef99

Please sign in to comment.