Skip to content

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

Integration: #8162 #7256 the Brushes tab test waits for the window to settle after the preview-size slider row

aionggf905c7243420
diff --git a/crates/ui-egui/src/brush_preset_dialog_tests.rs b/crates/ui-egui/src/brush_preset_dialog_tests.rs
index 3e13ebc38..c8bc461cd 100644
--- a/crates/ui-egui/src/brush_preset_dialog_tests.rs
+++ b/crates/ui-egui/src/brush_preset_dialog_tests.rs
@@ -65,7 +65,8 @@ fn every_new_preset_button_opens_the_dialog_and_cancel_saves_nothing() {
h.run_steps(3);
cancel(&mut h);
h.state_mut().ui.brush_tab = 1;
- h.run_steps(3);
+ // The window grows by the preview-size slider row over several frames; wait for it to settle.
+ h.run_steps(8);
h.get_by_label("Create new brush from the current settings").click();
h.run_steps(3);
cancel(&mut h);