mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
Disable debug UI auto-refresh for screenshot test
This commit is contained in:
parent
b74b9f1365
commit
fb1d3c8928
2 changed files with 7 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue