krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit 77668688ab

77668688abca526b88e9731ae1ce6ec53527b996

parent: 3b8c40e96a

Unsigned

cmc <hello@cleberg.net> · 2026-10-19 22:43 UTC

UI test: follow the current navigation (!63)

`AccessibilityAuditTests` failed on main at its first tap because the UI it navigates had changed since !19:

- Settings moved into the Sky tab's Explore menu (!41).
- The Launches tab is "News & launches" (!30).
- The Library has no "Planets" heading since !44; the test now uses "See all Planets".

The test passes on an iPhone 18 Pro simulator (iOS 27.0) and audits all seven screens (67 issues recorded, not failed, as before). `swift test` and server `npm test` (18) pass.

Layout: unified · split

App/UITests/AccessibilityAuditTests.swift +3 −2
@@ -32,14 +32,15 @@ final class AccessibilityAuditTests: XCTestCase {
32 func testAuditAllScreens() { 32 func testAuditAllScreens() {
33 sleep(3) 33 sleep(3)
34 audit("Sky") 34 audit("Sky")
35 app.buttons["Explore"].tap()
35 app.buttons["Settings"].tap(); sleep(1) 36 app.buttons["Settings"].tap(); sleep(1)
36 audit("Settings") 37 audit("Settings")
37 app.buttons["Done"].tap(); sleep(1) 38 app.buttons["Done"].tap(); sleep(1)
38 tab("System"); audit("System") 39 tab("System"); audit("System")
39 tab("Sun"); audit("Sun") 40 tab("Sun"); audit("Sun")
40 tab("Launches"); audit("Launches") 41 tab("News & launches"); audit("News & launches")
41 tab("Library"); audit("Library") 42 tab("Library"); audit("Library")
42 app.staticTexts["Planets"].firstMatch.tap(); sleep(1) 43 app.buttons["See all Planets"].firstMatch.tap(); sleep(1)
43 app.staticTexts["Saturn"].firstMatch.tap(); sleep(2) 44 app.staticTexts["Saturn"].firstMatch.tap(); sleep(2)
44 audit("Library page: Saturn") 45 audit("Library page: Saturn")
45 print("ACCESSIBILITY-AUDIT-BEGIN") 46 print("ACCESSIBILITY-AUDIT-BEGIN")