web add table fix in naming
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user