v0.3.7-pre.008-fix.002

This commit is contained in:
2026-09-02 17:09:39 +02:00
parent d7db8d69e0
commit d49d7af0a4
4 changed files with 139 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-backfill-desk/tests/desktop_contract.rs
// version: 8
// version: 9
//! Structural desktop contract checks for the Backfill Desk scaffold.
@@ -315,11 +315,11 @@ fn pre_008_start_installs_handle_before_non_blocking_spawn_and_keeps_single_run_
assert!(run.contains("std::sync::Mutex<std::option::Option<ActiveBackfillRun>>"));
assert!(tauri.contains("backfill_start"));
let prepare_index = tauri.find("state.prepare_backfill_start(request)");
let spawn_index = tauri.find("tauri::async_runtime::spawn(async move");
assert!(prepare_index.is_some());
assert!(spawn_index.is_some());
if let (std::option::Option::Some(prepare_index), std::option::Option::Some(spawn_index)) = (prepare_index, spawn_index) {
assert!(prepare_index < spawn_index);
if let std::option::Option::Some(prepare_index) = prepare_index {
let start_tail = &tauri[prepare_index..];
let spawn_index = start_tail.find("tauri::async_runtime::spawn(async move");
assert!(spawn_index.is_some());
}
assert!(html.contains("startBackfillRequest"));
assert!(html.contains("Démarrer le backfill"));