From 199bacff92cb1267a1c819183d2d04c5cc174fe2 Mon Sep 17 00:00:00 2001 From: IsraelleHub <145595240+IsraelleHub@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:34:14 -0500 Subject: [PATCH] increase timeout --- .github/workflows/documentation_accessibility_checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation_accessibility_checks.yml b/.github/workflows/documentation_accessibility_checks.yml index dc030a8dc1a..16bdd32cc59 100644 --- a/.github/workflows/documentation_accessibility_checks.yml +++ b/.github/workflows/documentation_accessibility_checks.yml @@ -55,14 +55,14 @@ jobs: # Extract URLs from sitemap and iterate for url in $(grep -o '[^<]*' "$sitemap_path" | sed 's///'); 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