From b37e449f2bddf443a73b308ca1d764b0dbdc86c5 Mon Sep 17 00:00:00 2001 From: Cameron Paul Date: Sat, 24 May 2025 22:01:41 +0000 Subject: Add extra sleep after window appears in HTML tests --- test/html/driver.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3