test(engine): add undo and redo assertions for queued still frame export

This commit is contained in:
Kushagra Kumar committed 2026-10-19 02:11:05 +05:30
1 parent 791e6bb5eb
commit f7922a9fba
1 file changed
+6
+6
View File
@@ -199,4 +199,10 @@ fn save_frame_as_defaults_to_png_sequence_with_alpha() {
let it = s.project.render_queue.last().unwrap();
assert_eq!(it.output.name, "PNG Sequence with Alpha");
assert_eq!(it.output.channels, effectcraft_project::render_queue::Channels::Rgba);
s.execute("edit.undo", json!({})).unwrap();
assert!(s.project.render_queue.is_empty());
s.execute("edit.redo", json!({})).unwrap();
let it = s.project.render_queue.last().unwrap();
assert_eq!(it.output.name, "PNG Sequence with Alpha");
assert_eq!(it.output.channels, effectcraft_project::render_queue::Channels::Rgba);
}