Exercise canvas transforms with the production request signature
This commit is contained in:
parent
fab2136df3
commit
b0e406cd32
@ -5090,7 +5090,7 @@ mod tests {
|
||||
"request":{"slotId":slot,"sourceCandidateId":source_id,"transform":{"crop":[250,200,750,800]}}});
|
||||
let (events, _receiver) = mpsc::channel();
|
||||
let ctx = egui::Context::default();
|
||||
let derived = backend.production_image_request(doc, &action, &events, &ctx).unwrap();
|
||||
let derived = backend.production_image_request(doc, &action, &events, &ctx, None).unwrap();
|
||||
let id = derived["id"].as_str().unwrap();
|
||||
let durable = read_candidate(dir, id).unwrap();
|
||||
assert_ne!(durable["id"], source["id"]);
|
||||
@ -5104,7 +5104,7 @@ mod tests {
|
||||
|
||||
action["request"]["sourceCandidateId"] = Value::Null;
|
||||
action["request"]["referenceIndex"] = json!(0);
|
||||
let photo = backend.production_image_request(doc, &action, &events, &ctx).unwrap();
|
||||
let photo = backend.production_image_request(doc, &action, &events, &ctx, None).unwrap();
|
||||
let photo = read_candidate(dir, photo["id"].as_str().unwrap()).unwrap();
|
||||
assert_eq!(photo["references"], images);
|
||||
assert_eq!(photo["sourceType"], "product-reference");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user