Skip to content

Commit

Permalink
Increase timeout to 5 min
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelleHub committed Jul 31, 2024
1 parent fb7b898 commit 6c84e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/documentation_accessibility_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ jobs:

# Extract URLs from sitemap and iterate
for url in $(grep -o '<loc>[^<]*' "$sitemap_path" | sed 's/<loc>//'); do
if axe "$url" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --timeout=30000 --exit; then
if axe "$url" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --timeout=300000 --exit; then
echo "No accessibility issues found in $url"
else
echo "Accessibility issues found in $url"
echo "$url" >> accessibility_issues.txt

# Extract number of issues from axe output
issues=$(axe "$url" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --timeout=30000 | grep -oP '\d+ Accessibility issues detected' | grep -oP '\d+')
issues=$(axe "$url" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --timeout=300000 | grep -oP '\d+ Accessibility issues detected' | grep -oP '\d+')
if [ -n "$issues" ]; then
num_issues=$((num_issues + issues))
fi
Expand Down

0 comments on commit 6c84e05

Please sign in to comment.