web add table fix in naming

This commit is contained in:
Priec
2026-08-13 22:48:29 +02:00
parent 2b68560359
commit df145c14f7
5 changed files with 89 additions and 21 deletions

View File

@@ -184,6 +184,28 @@ mod tests {
assert!(html.contains(r#"<span class="tag">renamed to md</span>"#), "{html}");
assert!(html.contains(r#"name="generated_alias_names" value="md""#));
// The names only reach the column list when something posts them, and
// the section stays open so the applied names can be read back.
assert!(html.contains(r#""action": "apply-generated-names""#));
assert!(html.contains(r#"<details class="rename-generated" open>"#));
}
/// With no name asked for, the section is the closed default it was.
#[test]
fn the_rename_section_starts_closed() {
let mut page = page();
page.draft.columns.added.push(ColumnDefinition {
name: "accounting".to_string(),
data_type: "accounting".to_string(),
indexed: false,
quantity_ledger: false,
money_mode: MoneyMode::Exact,
currency: "EUR".to_string(),
});
let html = render_builder(&page);
assert!(html.contains(r#"<details class="rename-generated" >"#), "{html}");
}
#[test]