ladybird/Tests/LibWebView
sideshowbarker 33d969682b Tests: Wait for session history convergence in UI history assertions
Problem: TestWebDriverSessionHistory failed intermittently on the slower
sanitizer CI runners. The UI history already matched what’s expected,
but webContentHistoryMatchesUI was still false — because the snapshot
was caught mid process-swap. The failing assertion varied from run to
run, making it almost certainly a sampling race.

Cause: A cross-site history navigation swaps the WebContent process and
re-seeds its history, and the UI-process mirror converges to that
asynchronously — after the script-visible navigation has finished. But
expect_ui_session_history sampled the mirror once, and asserted right
away — so it could read the state before convergence.

Fix: When a converged state is expected, wait for it instead of sampling
once: Poll until the UI history matches and WebContent matches the UI.
2026-06-18 10:23:49 +02:00
..
CMakeLists.txt WebContent: Wait for WebDriver history traversal completion 2026-06-14 17:38:44 +02:00
test-webdriver-session-history.py Tests: Wait for session history convergence in UI history assertions 2026-06-18 10:23:49 +02:00
TestHistoryStore.cpp LibWebView+UI: Remove the clear-everything history store API 2026-06-10 20:27:36 +02:00
TestHSTSStore.cpp LibWeb+LibHTTP: Consult HSTS preload list before dynamic-store IPC 2026-05-29 22:23:33 +02:00
TestSessionHistory.cpp Tests/LibWebView: Cover the UI history model 2026-06-14 17:38:44 +02:00
TestWebViewURL.cpp UI: Shorten web URLs in location fields 2026-05-31 19:20:59 +02:00