#660: a file saved as Proto.figcraft presents as Proto (titles follow file names on main)

This commit is contained in:
bflatastic
2026-10-24 09:34:40 +07:00
parent f00b62ba2d
commit 1f9effd25d
+2 -1
View File
@@ -170,7 +170,8 @@ fn a_saved_file_opened_again_gets_its_tab_back() {
u.run("file.close", json!({"index": 0}));
u.run("file.open", json!({"path": path}));
u.run("proto.present", json!({"start": a}));
assert_eq!(tabs(&u), json!([{"name": "Untitled - Page 1", "active": true}]));
// Saved as Proto.figcraft: the file's title follows its name.
assert_eq!(tabs(&u), json!([{"name": "Proto - Page 1", "active": true}]));
u.key(pos2(700.0, 500.0), Key::Escape);
assert!(!u.app.ui.home, "back to its file");
assert_eq!(tabs(&u), json!([]));