test: assert panel rows-ready fixture data

This commit is contained in:
2026-06-18 21:17:51 +09:00
parent d32fb3bc3c
commit fffdfd2721
3 changed files with 236 additions and 35 deletions
+4
View File
@@ -151,9 +151,13 @@ pub(crate) async fn run(
#[cfg(feature = "e2e-test")]
{
if !emitted_panel_ready {
// `panel_ready` is a first-visible-frame signal only. E2E tests that need
// list/data readiness must wait for a concrete `rows_rendered` fixture row.
crate::e2e_observer::emit("panel", "panel_ready", serde_json::json!({}));
emitted_panel_ready = true;
}
// Emit every drawn row snapshot separately so tests can assert data-backed row
// readiness without conflating it with the first frame.
app.emit_rows_rendered();
}