v0.3.15-pre.008
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/tests/desktop_contract.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
//! Desktop scaffold contract canaries for Raw Transaction Ingest Desk.
|
||||
|
||||
@@ -184,3 +184,19 @@ fn pre_007_start_preflight_is_backend_owned_generation_bound_and_does_not_launch
|
||||
assert!(!tauri.contains(forbidden), "pre.007 Tauri surface contains premature runtime marker {forbidden}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_008_start_stop_commands_and_frontend_controls_are_mono_route_and_backend_owned() {
|
||||
let tauri = read_text(app_root().join("src/tauri.rs").as_path());
|
||||
for required in ["start_route", "stop_route", "launch.monitor().await"] {
|
||||
assert!(tauri.contains(required), "missing pre.008 Tauri runtime marker {required}");
|
||||
}
|
||||
let html = read_text(app_root().join("frontend/main.html").as_path());
|
||||
for required in ["id=\"routeCommitment\"", "id=\"routeRuntimeState\"", "id=\"routeRuntimeIdentity\"", "id=\"stopRoute\""] {
|
||||
assert!(html.contains(required), "missing pre.008 frontend runtime marker {required}");
|
||||
}
|
||||
let main = read_text(app_root().join("frontend/ts/main.ts").as_path());
|
||||
for required in ["mono-route Start requested", "mono-route Stop requested", "start_route", "stop_route"] {
|
||||
assert!(main.contains(required), "missing pre.008 frontend control marker {required}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user