From fb7b898efb180ccbae2545ceb4e6dad2ff405f97 Mon Sep 17 00:00:00 2001 From: IsraelleHub <145595240+IsraelleHub@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:30:36 -0500 Subject: [PATCH] Increase timeout :) --- .github/workflows/documentation_accessibility_checks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation_accessibility_checks.yml b/.github/workflows/documentation_accessibility_checks.yml index 7b5cbb13c96..37adf64c2b2 100644 --- a/.github/workflows/documentation_accessibility_checks.yml +++ b/.github/workflows/documentation_accessibility_checks.yml @@ -45,6 +45,7 @@ jobs: yarn build yarn serve & npx wait-on http://localhost:3000 & + sleep 10 - name: Check accessibility issues id: accessibility_check @@ -57,14 +58,14 @@ jobs: # Extract URLs from sitemap and iterate for url in $(grep -o '[^<]*' "$sitemap_path" | sed 's///'); do - if axe "$url" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --exit; then + if axe "$url" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --timeout=30000 --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 | grep -oP '\d+ Accessibility issues detected' | grep -oP '\d+') + issues=$(axe "$url" --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --timeout=30000 | grep -oP '\d+ Accessibility issues detected' | grep -oP '\d+') if [ -n "$issues" ]; then num_issues=$((num_issues + issues)) fi