aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Paul <cpaul37@gmail.com>2025-05-24 22:01:41 +0000
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-06-29 14:05:04 +0200
commitb37e449f2bddf443a73b308ca1d764b0dbdc86c5 (patch)
tree74d6376cc76ede08f2432e37ea9987c3162f03c8
parentc35228c4be4bd7102e350a9b8b1e5947cb4b0f18 (diff)
Add extra sleep after window appears in HTML tests
-rwxr-xr-xtest/html/driver.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/html/driver.sh b/test/html/driver.sh
index bd869ecd..76e3b2ef 100755
--- a/test/html/driver.sh
+++ b/test/html/driver.sh
@@ -32,15 +32,17 @@ function render_page() {
dillopid=$!
# TODO: We need a better system to determine when the page loaded
- # This will poll for the window every 5th of a second for up to 5 seconds
+ # This will poll for the window every 10th of a second for up to 5 seconds
found_window=false
- for i in {0..25}; do
- sleep 0.2
+ for i in {0..50}; do
+ sleep 0.1
# Capture only Dillo window
winid=$(xwininfo -all -root | awk '/Dillo:/ {print $1}')
if [ ! -z "$winid" ]; then
found_window=true
+ # Wait some after the window appears to ensure rendering is done
+ sleep 0.25
break
fi
done