mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
docs(ui-egui): document the rasterize prompt tests (#8806)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
54515f94b3
commit
87c1d50177
1 file changed
+4
@@ -46,6 +46,8 @@ fn prompt(app: &PhotocraftApp) -> Option<&crate::state::Dialog> {
|
||||
app.ui.dialogs.iter().find(|d| owns(&d.fields))
|
||||
}
|
||||
|
||||
/// #8806: OK on the prompt rasterizes and adds one history state; the held click is not
|
||||
/// replayed, and the next click paints with no prompt.
|
||||
#[test]
|
||||
fn ok_rasterizes_without_replaying_the_click() {
|
||||
for kind in Kind::ALL {
|
||||
@@ -131,6 +133,8 @@ fn only_pixel_painting_asks() {
|
||||
assert!(app.session.active().unwrap().doc.layers.iter().any(|l| matches!(l.content, LayerContent::Text(_))));
|
||||
}
|
||||
|
||||
/// A prompt with missing, stale or malformed fields returns an error instead of panicking; a
|
||||
/// bad tool or point still just rasterizes.
|
||||
#[test]
|
||||
fn a_stale_or_bad_prompt_fails_gracefully() {
|
||||
let mut app = app_with(Kind::Type);
|
||||
|
||||
Reference in new issue
Block a user