Test: pick the camera panel's Crop pages button now that the quick toolbar has one

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76andClaude Sonnet 5.5 committed 2026-11-01 13:13:29 +01:00
1 parent 4cfafa2356
commit 0e7e6a0020
1 file changed
+2 -1
+2 -1
View File
@@ -147,7 +147,8 @@ fn after_enhance_page_crop_and_organize_take_over() {
h.get_by_label("Enhance page").click();
h.run_steps(4);
assert_eq!(h.state().views[0].camera_done.map(|d| d.page), Some(0));
h.get_by_label(button).click();
// The quick toolbar also has a "Crop pages" button; the camera panel's pill is the first match.
h.get_all_by_label(button).next().unwrap().click();
h.run_steps(3);
assert_eq!(h.state().quick_tool, then, "{button}");
assert_eq!(h.state().views[0].camera_done, None, "{button}");