Skip to content

Commit

Permalink
Merge pull request #1506 from NatLibFi/checka11y-function-parameters-…
Browse files Browse the repository at this point in the history
…with-nulls-and-cypress-folder-tuning

Cypress's video and screenshots directories are now under the tests/cypress directory, and these directories were added to the .gitignore file. Additionally, the way the checkA11y function is called has been corrected.
  • Loading branch information
miguelvaara authored Aug 31, 2023
2 parents e5c2ac2 + 9cc7d01 commit 4a7dd14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tests/jena-fuseki*
.DS_Store
.phpunit.result.cache
.php-cs-fixer.cache
cypress/videos/
cypress/screenshots/
tests/cypress/videos/
tests/cypress/screenshots/
/.idea
*.swp
4 changes: 3 additions & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module.exports = defineConfig({
'tests/cypress/accessibility/**/*.cy.js',
'tests/cypress/template/**/*.cy.js',
'tests/cypress/e2e/**/*.cy.js'
]
],
screenshotsFolder: 'tests/cypress/screenshots',
videosFolder: 'tests/cypress/videos'
}
})
8 changes: 1 addition & 7 deletions tests/cypress/support/accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ function getConfigurationForCLITests () {
}
function getConfigurationForGUITests () {
return it('Check for possible accessibility errors at all logging levels set below in accordance with WCAG AA requirements', () => {
checkA11y({
includedImpacts: ['minor', 'moderate', 'serious', 'critical'],
runOnly: {
type: 'tag',
values: ['wcag2aa']
}
})
checkA11y(null)
})
}

0 comments on commit 4a7dd14

Please sign in to comment.