From beef2049edd8d17148d4cd55130551dfac51b87e Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Thu, 10 Sep 2026 16:02:02 +0100 Subject: [PATCH] fix(maestro): update remaining id="app" references in web tests Co-Authored-By: Claude Opus 4.6 --- crates/maestro-daemon/tests/embedded_bundle.rs | 2 +- crates/maestro-daemon/tests/web_ui.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/maestro-daemon/tests/embedded_bundle.rs b/crates/maestro-daemon/tests/embedded_bundle.rs index edd5823..4533637 100644 --- a/crates/maestro-daemon/tests/embedded_bundle.rs +++ b/crates/maestro-daemon/tests/embedded_bundle.rs @@ -20,7 +20,7 @@ async fn embedded_index_is_real_spa_not_placeholder() { !html.contains("maestro is running"), "served index is the placeholder, not the built bundle" ); - // Stronger signal than `id="app"` (which appears in both source and built + // Stronger signal than `id="root"` (which appears in both source and built // HTML): the vite build rewrites the entry to a hashed `/assets/index-` // bundle, whereas the un-built source references `/src/main.ts`. This catches // both an empty/placeholder embed and the staleness case. diff --git a/crates/maestro-daemon/tests/web_ui.rs b/crates/maestro-daemon/tests/web_ui.rs index 82d0296..d6b7b1d 100644 --- a/crates/maestro-daemon/tests/web_ui.rs +++ b/crates/maestro-daemon/tests/web_ui.rs @@ -59,7 +59,7 @@ async fn root_serves_the_spa_shell() { .map(|v| v.starts_with("text/html")), Some(true) ); - assert!(resp.text().await.unwrap().contains(r#"id="app""#)); + assert!(resp.text().await.unwrap().contains(r#"id="root""#)); } #[tokio::test] @@ -69,7 +69,7 @@ async fn client_side_route_falls_back_to_the_shell() { .await .unwrap(); assert_eq!(resp.status(), 200); - assert!(resp.text().await.unwrap().contains(r#"id="app""#)); + assert!(resp.text().await.unwrap().contains(r#"id="root""#)); } /// An unmatched API path must 404 rather than fall through to the SPA shell: