forked from 1b-agent/opencadstudio-upstream
1 parent
e136741b0f
commit
2a482089b8
2 files changed
+20
-18
No files matched your search
@@ -631,14 +631,16 @@ mod tests {
|
||||
"test needs the welcome tab"
|
||||
);
|
||||
|
||||
// ABOUT opens a modal; link commands are checked without launching them.
|
||||
// ABOUT schedules its modal; it must pass the welcome-page gate.
|
||||
let start = app.command_line.history.len();
|
||||
let _ = app.update(Message::RibbonToolClick {
|
||||
tool_id: "ABOUT".to_string(),
|
||||
event: ModuleEvent::Command("ABOUT".to_string()),
|
||||
});
|
||||
assert!(
|
||||
app.active_modal == Some(crate::app::ModalKind::About),
|
||||
"ABOUT must open on the welcome page"
|
||||
assert_eq!(
|
||||
app.command_line.history.len(),
|
||||
start,
|
||||
"ABOUT must not be refused on the welcome page"
|
||||
);
|
||||
|
||||
// …but a tool that does need a drawing is still turned away (#299).
|
||||
|
||||
Reference in new issue
Block a user