Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelleHub committed Jul 18, 2024
1 parent 47e74b3 commit 199bacf
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 @@ -55,14 +55,14 @@ jobs:

# Extract URLs from sitemap and iterate
for url in $(grep -o '<loc>[^<]*' "$sitemap_path" | sed 's/<loc>//'); do
if axe --chrome-options="no-sandbox,disable-setuid-sandbox,disable-dev-shm-usage" "$url" --exit; then
if axe --chrome-options="no-sandbox,disable-setuid-sandbox,disable-dev-shm-usage,window-size=1920,1080,ignore-certificate-errors,ignore-ssl-errors,disable-gpu" --timeout=300000 "$url" --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 --chrome-options="no-sandbox,disable-setuid-sandbox,disable-dev-shm-usage" "$url" | grep -oP '\d+ Accessibility issues detected' | grep -oP '\d+')
issues=$(axe --chrome-options="no-sandbox,disable-setuid-sandbox,disable-dev-shm-usage,window-size=1920,1080,ignore-certificate-errors,ignore-ssl-errors,disable-gpu" "$url" | 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 199bacf

Please sign in to comment.