From 4e76b2d7586f85c755a9e06dc1561fcadb8138b0 Mon Sep 17 00:00:00 2001 From: thickfive Date: Thu, 16 Jul 2026 09:27:19 +0800 Subject: [PATCH] fix: render viewer snapshots for rotated iOS outlines Signed-off-by: thickfive --- CHANGELOG.md | 1 + Sources/SimUse/Viewer/ViewerAPIHandlers.swift | 10 +++++----- Tests/ViewerAPIHandlersTests.swift | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 928fb3a..f47ea2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- `sim-use viewer` now renders snapshots for rotated iOS Simulator windows; the Viewer API accepts the orientation suffix in `describe-ui` outline headers when extracting screen dimensions. - Four E2E suites (KeyTests, KeyComboTests, KeySequenceTests, StreamVideoTests) still invoked the pre-0.5.x top-level verb forms and had failed ever since the five iOS-only verbs moved under the `ios` namespace; they now call `sim-use ios `. - KeyComboTests' Cmd+A test asserted a cleared text field reads nil/empty — an empty `UITextField` exposes its placeholder as the accessibility value, so the assertion could never pass. It now accepts the placeholder form. diff --git a/Sources/SimUse/Viewer/ViewerAPIHandlers.swift b/Sources/SimUse/Viewer/ViewerAPIHandlers.swift index 6e0291f..a42d0c5 100644 --- a/Sources/SimUse/Viewer/ViewerAPIHandlers.swift +++ b/Sources/SimUse/Viewer/ViewerAPIHandlers.swift @@ -270,10 +270,10 @@ struct ViewerAPIHandlers { private func parseAppLine(_ line: String) -> [String: Any]? { // Match `App: