refactor(kanban): isolate legacy sync fixture
req: v1_release/002
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user