mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-27 08:08:35 +00:00
Tests: unsaved Save As still has no folder, and uses the first words as its name
#5793 landed on main after this PR: a new document's Save As name is its first words, not Document1.docx. The folder is still none, which is what #4143 tests.
This commit is contained in:
@@ -346,7 +346,7 @@ fn save_as_starts_in_the_folder_of_the_open_file() {
|
||||
let (mut fresh, shown) = async_app();
|
||||
typed(&mut fresh);
|
||||
fresh.save_as_dialog();
|
||||
assert_eq!(shown.borrow()[0].0, FileDialogRequest::Save { name: "Document1.docx".into(), dir: None });
|
||||
assert_eq!(shown.borrow()[0].0, FileDialogRequest::Save { name: format!("{UNSAVED}.docx"), dir: None });
|
||||
answer(&shown, None);
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user