From c1836f118dd0177318edae2e8291ce0574f48ecc Mon Sep 17 00:00:00 2001 From: Mika Vaara Date: Thu, 31 Aug 2023 12:22:02 +0300 Subject: [PATCH 1/2] The checkA11y function has been reverted to its previous version, and changes have been made to the Cypress folder structure. --- cypress.config.js | 4 +++- tests/cypress/support/accessibility.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress.config.js b/cypress.config.js index d502f0ab5..42ea2a54f 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -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' } }) diff --git a/tests/cypress/support/accessibility.js b/tests/cypress/support/accessibility.js index ecc58cc90..9d5b986fb 100644 --- a/tests/cypress/support/accessibility.js +++ b/tests/cypress/support/accessibility.js @@ -39,7 +39,7 @@ function getConfigurationForCLITests () { } function getConfigurationForGUITests () { return it('Check for possible accessibility errors at all logging levels set below in accordance with WCAG AA requirements', () => { - checkA11y({ + checkA11y(null, null, { includedImpacts: ['minor', 'moderate', 'serious', 'critical'], runOnly: { type: 'tag', From 9cc7d01e3c72e24fa5ad444a2ebf4cbc5f2c009c Mon Sep 17 00:00:00 2001 From: Mika Vaara Date: Thu, 31 Aug 2023 15:38:47 +0300 Subject: [PATCH 2/2] The function call of checkA11y has been corrected --- .gitignore | 4 ++-- tests/cypress/support/accessibility.js | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index c6350d1d6..fbb9e9f20 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/tests/cypress/support/accessibility.js b/tests/cypress/support/accessibility.js index 9d5b986fb..70bcb76f9 100644 --- a/tests/cypress/support/accessibility.js +++ b/tests/cypress/support/accessibility.js @@ -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(null, null, { - includedImpacts: ['minor', 'moderate', 'serious', 'critical'], - runOnly: { - type: 'tag', - values: ['wcag2aa'] - } - }) + checkA11y(null) }) }