File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -114,15 +114,23 @@ jobs:
114114 run : |
115115 # Start virtual display with better settings
116116 Xvfb :99 -screen 0 1280x1024x24 -ac +extension GLX +render -noreset &
117+ XVFB_PID=$!
117118 sleep 3
118119
119- # Start a minimal window manager to help with graphics
120- openbox --display=:99 &
121- sleep 2
120+ # Debug: Check if Xvfb is running
121+ if ! ps -p $XVFB_PID > /dev/null; then
122+ echo "Xvfb failed to start"
123+ exit 1
124+ fi
122125
123126 # Debug: Check if Rails server is still running
124127 curl -f http://localhost:3000 || (echo "Rails server not responding" && exit 1)
125128
129+ # Set additional Firefox environment variables for headless mode
130+ export MOZ_HEADLESS=1
131+ export DISPLAY=:99
132+ export GECKO_DRIVER_LOG=debug
133+
126134 # Run the accessibility scan with timeout
127135 timeout 300 python python_components/accessibility_scan/main.py || (echo "Accessibility scan timed out or failed" && exit 1)
128136
You can’t perform that action at this time.
0 commit comments