mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: re-enable pa11y-ci for PRs (#41723)
* Chore: re-enable pa11y-ci for PRs * Chore: update signature * Chore: revert wait times * Chore: use same hash as docker image
This commit is contained in:
@@ -444,10 +444,12 @@ def test_a11y_frontend_step(ver_mode, edition, port=3001):
|
||||
commands = [
|
||||
'yarn wait-on http://$HOST:$PORT',
|
||||
]
|
||||
failure = 'ignore'
|
||||
if ver_mode == 'pr':
|
||||
commands.extend([
|
||||
'pa11y-ci --config .pa11yci-pr.conf.js',
|
||||
])
|
||||
failure = 'always'
|
||||
else:
|
||||
commands.extend([
|
||||
'pa11y-ci --config .pa11yci.conf.js --json > pa11y-ci-results.json',
|
||||
@@ -464,7 +466,7 @@ def test_a11y_frontend_step(ver_mode, edition, port=3001):
|
||||
'HOST': 'end-to-end-tests-server' + enterprise2_suffix(edition),
|
||||
'PORT': port,
|
||||
},
|
||||
'failure': 'ignore',
|
||||
'failure': failure,
|
||||
'commands': commands,
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ else
|
||||
fi
|
||||
|
||||
# Run accessibility command
|
||||
yarn dlx --quiet pa11y-ci@pa11y/pa11y-ci#5c842cf1b9fe2867b70ff5354851d985be8d71c4 --config .pa11yci.conf.js --json > pa11y-ci-results.json
|
||||
yarn dlx --quiet pa11y-ci@pa11y/pa11y-ci#6b2d4f54efe445ad551472acc1877fe7542ac085 --config .pa11yci.conf.js --json > pa11y-ci-results.json
|
||||
|
||||
# Generate HTML report
|
||||
yarn dlx pa11y-ci-reporter-html@3.0.1 pa11y-ci-reporter-html
|
||||
|
||||
Reference in New Issue
Block a user