Disable debug UI auto-refresh for screenshot test

This commit is contained in:
Bryan Helmkamp 2026-04-12 15:06:04 -04:00
parent b74b9f1365
commit fb1d3c8928
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View file

@ -371,7 +371,9 @@ async function refresh() {
} catch(e) { /* silent -- next interval will retry */ }
}
setInterval(refresh, 2000);
if (new URLSearchParams(window.location.search).get('refresh') !== '0') {
setInterval(refresh, 2000);
}
function renderState(data) {
if (data.namespaces.length === 0) {

View file

@ -313,7 +313,10 @@ async fn debug_page_renders_in_headless_chrome() {
command.arg("--no-sandbox");
}
let output = command
.arg(format!("{}/__debug", server.base_url))
// Static mode keeps the page visually identical for the screenshot
// while avoiding a live refresh loop that can stall headless Chrome
// on Linux CI.
.arg(format!("{}/__debug?refresh=0", server.base_url))
.output()
.expect("Chrome should run");