Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

automation test: new fill and adjustment layers' path is a vector path (#1419)

Claude26de59f54c48
diff --git a/crates/automation/src/workspace.rs b/crates/automation/src/workspace.rs
index 113f29980..2d46f3db3 100644
--- a/crates/automation/src/workspace.rs
+++ b/crates/automation/src/workspace.rs
@@ -607,7 +607,10 @@ mod tests {
| "layer.combineShapes.intersectShapeAreas"
| "layer.combineShapes.excludeOverlappingShapes"
| "layer.combineShapes.mergeShapeComponents"
- ) {
+ ) || id.starts_with("layer.newFillLayer.")
+ || id.starts_with("layer.newAdjustmentLayer.")
+ {
+ // New fill and adjustment layers take a vector path as their vector mask (#1419).
return false;
}
params.to_ascii_lowercase().contains("path")