refactor(kanban): isolate legacy sync fixture

req: v1_release/002
This commit is contained in:
slhx agent
2026-07-14 00:27:38 +02:00
parent 3bad745da9
commit c793de8224
6 changed files with 58 additions and 37 deletions
+5 -2
View File
@@ -505,7 +505,7 @@ async fn multiplayer_kanban_milestone_journey_recovers_and_converges() -> WebDri
.execute_async(
r#"
const done = arguments[arguments.length - 1];
Promise.all(['/app.js', '/offline.js'].map((path) => fetch(path).then((response) => response.status)))
Promise.all(['/app.js', '/offline.js', '/sync-demo', '/sync.js'].map((path) => fetch(path).then((response) => response.status)))
.then((statuses) => done({ statuses, scripts: [...document.scripts].map((script) => script.getAttribute('src')) }))
.catch((error) => done({ error: String(error) }));
"#,
@@ -514,7 +514,10 @@ async fn multiplayer_kanban_milestone_journey_recovers_and_converges() -> WebDri
.await?
.json()
.clone();
assert_eq!(framework_only["statuses"], serde_json::json!([404, 404]));
assert_eq!(
framework_only["statuses"],
serde_json::json!([404, 404, 404, 404])
);
assert_eq!(
framework_only["scripts"],
serde_json::json!(["/hemx.js", "/hemx.client.js", "/hemx-sync.js"])