v0.3.15-pre.005-fix.002
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/tests/desktop_contract.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Desktop scaffold contract canaries for Raw Transaction Ingest Desk.
|
||||
|
||||
@@ -122,3 +122,34 @@ fn pre_005_route_foundation_is_backend_owned_and_has_exact_five_ids_and_seven_st
|
||||
assert!(!tauri.contains(forbidden), "scaffold Tauri surface contains premature runtime marker {forbidden}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_005_fix_002_shell_reuses_common_light_template_and_bounds_route_foundation() {
|
||||
let html = read_text(app_root().join("frontend/main.html").as_path());
|
||||
for required in [
|
||||
"<header class=\"app-header\">",
|
||||
"navbar h-100 py-0 bg-light text-dark",
|
||||
"col-auto app-sidebar border-end bg-body-tertiary",
|
||||
"col app-content app-scrollable h-100",
|
||||
"card app-shell-card mx-auto shadow-sm border-0",
|
||||
"id=\"routeFoundation\" class=\"row g-3 app-route-grid\"",
|
||||
] {
|
||||
assert!(html.contains(required), "missing common shell marker: {required}");
|
||||
}
|
||||
for forbidden in ["app-header bg-dark", "app-sidebar bg-dark text-light", "app-content flex-grow-1"] {
|
||||
assert!(!html.contains(forbidden), "obsolete shell marker remains: {forbidden}");
|
||||
}
|
||||
let styles = read_text(app_root().join("frontend/sass/_app.scss").as_path());
|
||||
for required in [
|
||||
".app-scrollable {",
|
||||
".app-shell-card {",
|
||||
".app-route-grid {",
|
||||
".app-route-grid > * {",
|
||||
"min-width: 0;",
|
||||
"max-width: 100%;",
|
||||
"overflow: hidden;",
|
||||
"overflow-wrap: anywhere;",
|
||||
] {
|
||||
assert!(styles.contains(required), "missing bounded layout marker: {required}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user