From 82609a5046f2231999c079f180d8566d923fec38 Mon Sep 17 00:00:00 2001 From: gramps Date: Mon, 2 Nov 2026 11:20:54 -0800 Subject: [PATCH] test(ui): follow shared geometry panel gate --- HANDOFF.md | 8 +++++--- ytLive.Tests/GeometryFieldWidthTests.cs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 98517ad..24179d9 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -9,18 +9,20 @@ `YtCheckBox` markup; committed as `221b816`. - `PropertiesHierarchyTests` now checks shared styles and scopes the duplicate shape bindings to the Shape block; focused test passes. This task is ready to commit. -- Clean app build is 0 warnings. Full suite: 10 failed / 512 passed of 522; remaining failures are +- `GeometryFieldWidthTests` now identifies the shared draggable-layer Geometry block; focused test + passes. This task is ready to commit. +- Clean app build is 0 warnings. Full suite: 9 failed / 513 passed of 522; remaining failures are being handled one task and one local commit at a time. ## Next action -Commit the properties-hierarchy assertion update, then take the next remaining failure. Do not +Commit the Geometry selector update, then take the next remaining failure. Do not push absent a milestone/checkpoint request. ## Landmines - Build/test with Windows `dotnet.exe`; the full suite can hang in WASAPI teardown. -- `verify.sh` cannot pass until the remaining 10 suite failures are resolved; scope checks are run +- `verify.sh` cannot pass until the remaining 9 suite failures are resolved; scope checks are run separately when that gate exits early. - Any integration test constructing `MainWindow` must set `LayoutPathOverride` to a temporary DB and clear it in `finally`. diff --git a/ytLive.Tests/GeometryFieldWidthTests.cs b/ytLive.Tests/GeometryFieldWidthTests.cs index 3f50375..a107146 100644 --- a/ytLive.Tests/GeometryFieldWidthTests.cs +++ b/ytLive.Tests/GeometryFieldWidthTests.cs @@ -31,7 +31,7 @@ public class GeometryFieldWidthTests var geometry = doc.Descendants() .Where(e => e.Name.LocalName == "TextBlock" && (string?)e.Attribute("Text") == "Geometry") - .Single(e => ((string?)e.Parent?.Attribute("Visibility") ?? "").Contains("IsWebcamSelected")); + .Single(e => ((string?)e.Parent?.Attribute("Visibility") ?? "").Contains("SelectedElement.IsDraggable")); var rows = geometry.Parent!.Elements().Where(e => e.Name.LocalName == "DockPanel").ToList(); Assert.Equal(2, rows.Count);