Test runner: increase wait times for iframe htmx activation
- reload-frame: wait 1500ms after wait-boot (was 500ms) - wait-for-el: poll up to 25 tries / 5s (was 15 / 3s) - Added log after wait-boot confirming iframe ready Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -32,7 +32,8 @@
|
||||
(host-call (host-get w "location") "reload")
|
||||
(hs-wait 1000)
|
||||
(wait-boot)
|
||||
(hs-wait 500))))
|
||||
(console-log "[test] iframe ready, waiting for htmx activation")
|
||||
(hs-wait 1500))))
|
||||
(wait-for-el
|
||||
(fn
|
||||
(sel max-tries)
|
||||
@@ -107,7 +108,7 @@
|
||||
(let ((first-sel (nth (first actions) 1)))
|
||||
(when (string? first-sel)
|
||||
(console-log (str "[test] wait-for: " first-sel))
|
||||
(let ((found (wait-for-el first-sel 15)))
|
||||
(let ((found (wait-for-el first-sel 25)))
|
||||
(when (nil? found) (set! fail-msg (str "Timeout: " first-sel)))))))
|
||||
(when (nil? fail-msg)
|
||||
(for-each (fn (action) (when (nil? fail-msg) (let ((err (run-action action))) (when (string? err) (set! fail-msg err))))) actions))
|
||||
|
||||
Reference in New Issue
Block a user