From 36b33f5dbb6a2b7ae47b264adb956e289fced5c2 Mon Sep 17 00:00:00 2001 From: Lahfir Date: Sun, 12 Jul 2026 22:25:51 -0700 Subject: [PATCH] test: track current hover state in fixture --- tests/fixture-app/AgentDeskFixture.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixture-app/AgentDeskFixture.swift b/tests/fixture-app/AgentDeskFixture.swift index e47791b..0b2c080 100644 --- a/tests/fixture-app/AgentDeskFixture.swift +++ b/tests/fixture-app/AgentDeskFixture.swift @@ -124,7 +124,7 @@ struct ContentView: View { .padding(6) .background(hoverStatus == "hovered" ? Color.yellow.opacity(0.4) : Color.clear) .accessibilityLabel("hover-target") - .onHover { inside in if inside { hoverStatus = "hovered" } } + .onHover { inside in hoverStatus = inside ? "hovered" : "idle" } StatusReadout(name: "hover-status", value: hoverStatus) /// Two controls sharing role and name. Each records a distinct