select global/perprofile table

This commit is contained in:
Priec
2026-08-12 13:55:26 +02:00
parent 811dcbeb4b
commit 112bea6519
3 changed files with 45 additions and 10 deletions

View File

@@ -119,6 +119,18 @@ mod tests {
assert!(html.contains(r#"<option value="EUR">"#));
}
#[test]
fn the_scope_picker_explains_profile_and_shared_tables() {
let html = render_builder(&page());
assert!(html.contains("Where should this table be available?"));
assert!(html.contains(r#"name="global" value="false""#));
assert!(html.contains(r#"name="global" value="true""#));
assert!(html.contains("Which profile?"));
assert!(html.contains("Only the selected profile can use this table."));
assert!(html.contains("Every profile can use this shared table."));
}
/// Every type the server accepts has to be reachable from the picker, or
/// the web UI silently offers less than the backend does.
#[test]