From a61e91f4c72604ed460d4ded2af753cd18d176a4 Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 18 Nov 2026 03:55:02 +0000 Subject: [PATCH] story suite: the settle checks run on one OS On macOS the menu bar moves to the system menu, so a MenuBar story draws nothing in the window and the leaf-allocation check failed on macOS runners. The checks (allocates, stable id and size, one pass) hold on every OS. --- crates/ui-contract/src/testing/suite/states.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ui-contract/src/testing/suite/states.rs b/crates/ui-contract/src/testing/suite/states.rs index 46fc69b47..b18c44b5f 100644 --- a/crates/ui-contract/src/testing/suite/states.rs +++ b/crates/ui-contract/src/testing/suite/states.rs @@ -8,6 +8,7 @@ use crate::testing::bypass; use crate::testing::fixture::Fixture; use crate::testing::story::Required; use craft_behavior::Input; +use craft_host::target::Os; pub(super) const CASES: &[Case] = &[ Case::new("required-states", ANY, every_required_state_has_a_story), @@ -86,6 +87,9 @@ fn every_required_state_has_a_story(subject: &Subject) -> Result<(), String> { fn stories_show_and_hold_still(subject: &Subject) -> Result<(), String> { for story in &subject.stories { let mut fixture = Fixture::story(story); + // These checks hold on every OS, so they run on one: on macOS the menu bar moves to the system menu and a + // MenuBar story draws nothing in the window. + fixture.os(Os::Linux); fixture.settle(); let found = bypass::findings(&fixture); if !found.is_empty() {