mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 18:01:40 -06:00
22eb2df602
* Rename to grafana-server / move scripts into new directory * Change grafana-server step command * Change scripts paths * Use test grabpl version * Update run-suite script * Further name updates * Update grabpl version * Update contribute/style-guides/e2e-core.md Co-authored-by: Maria Alexandra <239999+axelavargas@users.noreply.github.com> Co-authored-by: Maria Alexandra <239999+axelavargas@users.noreply.github.com>
37 lines
832 B
Bash
Executable File
37 lines
832 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
# Clean up old report
|
|
jsonReport="pa11y-ci-results.json"
|
|
if [ -f "$jsonReport" ] ; then
|
|
rm "$jsonReport"
|
|
fi
|
|
|
|
# Clean up old folder
|
|
report="pa11y-ci-report/"
|
|
|
|
if [ -d "$report" ] ; then
|
|
rm -R "$report"
|
|
fi
|
|
|
|
|
|
# Run e2e grafana instance
|
|
|
|
if [ "$BASE_URL" != "" ]; then
|
|
echo -e "BASE_URL set, skipping starting server"
|
|
else
|
|
# Start it in the background
|
|
./scripts/grafana-server/start-server > scripts/grafana-server/server.log &
|
|
./scripts/grafana-server/wait-for-grafana
|
|
fi
|
|
|
|
# Run accessibility command
|
|
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
|
|
|
|
# Start local server
|
|
yarn http-server pa11y-ci-report -p 1234
|