Context menu test: a block reference offers both the Block Editor and REFEDIT (#818, #824)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-13 06:13:41 -04:00
parent 26179f7428
commit 4a9dd31a58
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ fn a_selected_block_reference_offers_the_block_editor() {
app.run("block", json!({ "name": "Door", "base": [0, 0], "handles": [l] })).unwrap();
select_all(&mut app);
let g = vec![context_menu::object_entries(&app)];
assert_eq!(labels(&g), ["Block Editor"]);
assert_eq!(labels(&g), ["Block Editor", "Edit Reference In-Place"]);
// Choosing it opens the Block Editor on that block; its own menu then saves and closes it.
cadcraft_ui_egui::menus::activate(&mut app, "bedit");
assert_eq!(app.session.state().unwrap().block_editor(), Some("Door"));