Name the reordered documents so the menu trial sees the move

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-11-21 19:20:58 +01:00
1 parent 22dad4f071
commit 439b955cc6
1 file changed
+2 -2
+2 -2
View File
@@ -158,8 +158,8 @@ fn the_held_menu_model_equals_a_fresh_build_after_each_step() {
held_is_fresh(&mut h, "a save that renames the document");
// Three documents, the first active: moving the second after the third keeps the active document where it was,
// and the Window menu's second entry opens the other document now (#16252).
for _ in 0..2 {
h.state_mut().session.execute("file.new", json!({"width": 200, "height": 100})).unwrap();
for name in ["Second", "Third"] {
h.state_mut().session.execute("file.new", json!({"width": 200, "height": 100, "name": name})).unwrap();
}
h.state_mut().session.set_active(0);
held_is_fresh(&mut h, "opening two more documents");