From 456e06f105c5d228949eef6bcae6ebb463b90d12 Mon Sep 17 00:00:00 2001 From: kaireewu Date: Sat, 31 Oct 2026 23:54:01 +0800 Subject: [PATCH] chore(web): finalize scroll behavior and preview assertions --- reaction_board/web/static/router.js | 2 +- tests/test_preview_seed.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/reaction_board/web/static/router.js b/reaction_board/web/static/router.js index 49ae8fd..d03da7a 100644 --- a/reaction_board/web/static/router.js +++ b/reaction_board/web/static/router.js @@ -82,7 +82,7 @@ async function render() { // 导航状态更新不应阻断页面渲染 } } - window.scrollTo({ top: 0, behavior: "instant" }); + window.scrollTo({ top: 0, behavior: "auto" }); routeElement.innerHTML = `
`; try { diff --git a/tests/test_preview_seed.py b/tests/test_preview_seed.py index 767fc31..7c1b461 100644 --- a/tests/test_preview_seed.py +++ b/tests/test_preview_seed.py @@ -165,6 +165,7 @@ def test_seed_preview_end_to_end(): ) assert summary["ok"] is True assert summary["snapshots_failed"] == 3 + assert summary["snapshots_missing"] > 0 assert summary["date_from"] == START assert summary["date_to"] == LATEST assert summary["videos"] == 40