Commit 3c147ebd42
Unsigned
Layout: unified · split
Docs/ACCESSIBILITY.txt +26
| @@ -143,6 +143,32 @@ Environment variables do not work: neither a plain `xcodebuild` env var nor a | |||
| 143 | silently did nothing. And a committed value makes "when did clipping become | 143 | silently did nothing. And a committed value makes "when did clipping become |
| 144 | enforced?" answerable with `git blame` instead of CI tribal knowledge. | 144 | enforced?" answerable with `git blame` instead of CI tribal knowledge. |
| 145 | 145 | ||
| 146 | ## Screens reached through Settings | ||
| 147 | |||
| 148 | The suite audited the five root tabs and the watchlist only, so every screen | ||
| 149 | behind a Settings row was unaudited — including the integration editor's whole | ||
| 150 | form, which is the densest set of text fields and captions in the app, and the | ||
| 151 | SMTP port caption added in !5, which had never been rendered at the largest | ||
| 152 | Dynamic Type under audit (A-review C9). | ||
| 153 | |||
| 154 | Integrations and the integration editor are now covered, **report-only**: they | ||
| 155 | have never been through the ratchet, so gating them on first contact would fail | ||
| 156 | the build on findings that predate the coverage. What they report on iOS 27.0: | ||
| 157 | |||
| 158 | | Screen | Findings | | ||
| 159 | | --- | --- | | ||
| 160 | | Integrations | 1: `dynamicType` on "Process Queue Now" | | ||
| 161 | | Integration editor | 7: `contrast` on "Cancel", "Save", "DNS Changed", "Routing Rules"; `dynamicType` on "Cancel" and "Save"; one characterised system-field-placeholder clip | | ||
| 162 | |||
| 163 | "Cancel" and "Save" are the editor's toolbar buttons, which are plain `Button`s | ||
| 164 | rather than density-aware text — that is why they appear in both categories. | ||
| 165 | They go on the #21 burndown; `enforcedAuditTypes` widens to cover these screens | ||
| 166 | once they are clear. | ||
| 167 | |||
| 168 | The remaining Settings destinations — Display, History & Network, Local API, | ||
| 169 | iCloud Sync, Monitoring Log, Monitoring Settings, Scheduled Reports, Import & | ||
| 170 | Export, Data Management — are still unaudited. | ||
| 171 | |||
| 146 | ## Why the floor runtime needs its own run | 172 | ## Why the floor runtime needs its own run |
| 147 | 173 | ||
| 148 | **Audit coverage is not nested across OS versions.** Each runtime reports | 174 | **Audit coverage is not nested across OS versions.** Each runtime reports |
DomainDigUITests/AccessibilityAuditTests.swift +57
| @@ -191,6 +191,63 @@ final class AccessibilityAuditTests: XCTestCase { | |||
| 191 | 191 | ||
| 192 | // MARK: Helpers | 192 | // MARK: Helpers |
| 193 | 193 | ||
| 194 | // MARK: Screens reached through Settings (C9) | ||
| 195 | |||
| 196 | /// Integrations was not audited, so the SMTP port caption added in !5 had | ||
| 197 | /// never been rendered at the largest Dynamic Type under audit and nothing | ||
| 198 | /// here would have caught it wrapping badly. | ||
| 199 | /// | ||
| 200 | /// Report-only: these screens have never been through the ratchet, so | ||
| 201 | /// gating them now would fail the build on findings that predate the | ||
| 202 | /// coverage. They are a burndown list for #21 like the seeded screens, and | ||
| 203 | /// `enforcedAuditTypes` widens to cover them once they are clear. | ||
| 204 | func testIntegrationsScreen() throws { | ||
| 205 | let app = AccessibilityAuditHarness.launch() | ||
| 206 | app.selectRootTab("Settings") | ||
| 207 | |||
| 208 | let integrations = app.buttons["Integrations"] | ||
| 209 | XCTAssertTrue( | ||
| 210 | integrations.waitForExistence(timeout: 5), | ||
| 211 | "Settings no longer offers an Integrations row" | ||
| 212 | ) | ||
| 213 | integrations.tap() | ||
| 214 | |||
| 215 | let audited = try AccessibilityAuditHarness.audit( | ||
| 216 | app, | ||
| 217 | screen: "integrations", | ||
| 218 | test: self, | ||
| 219 | reportOnly: true | ||
| 220 | ) | ||
| 221 | try XCTSkipUnless(audited, "Audit did not complete in time for Integrations") | ||
| 222 | } | ||
| 223 | |||
| 224 | /// The integration editor's whole form, which is the densest set of text | ||
| 225 | /// fields and captions in the app and the one C9 named. | ||
| 226 | func testIntegrationEditorScreen() throws { | ||
| 227 | let app = AccessibilityAuditHarness.launch() | ||
| 228 | app.selectRootTab("Settings") | ||
| 229 | |||
| 230 | let integrations = app.buttons["Integrations"] | ||
| 231 | guard integrations.waitForExistence(timeout: 5) else { | ||
| 232 | throw XCTSkip("Settings no longer offers an Integrations row") | ||
| 233 | } | ||
| 234 | integrations.tap() | ||
| 235 | |||
| 236 | let add = app.buttons["Add Integration"] | ||
| 237 | guard add.waitForExistence(timeout: 5) else { | ||
| 238 | throw XCTSkip("the integrations screen offers no add button to reach the editor") | ||
| 239 | } | ||
| 240 | add.tap() | ||
| 241 | |||
| 242 | let audited = try AccessibilityAuditHarness.audit( | ||
| 243 | app, | ||
| 244 | screen: "integration-editor", | ||
| 245 | test: self, | ||
| 246 | reportOnly: true | ||
| 247 | ) | ||
| 248 | try XCTSkipUnless(audited, "Audit did not complete in time for the integration editor") | ||
| 249 | } | ||
| 250 | |||
| 194 | private func auditRootTab(_ tab: String) throws { | 251 | private func auditRootTab(_ tab: String) throws { |
| 195 | let app = AccessibilityAuditHarness.launch() | 252 | let app = AccessibilityAuditHarness.launch() |
| 196 | app.selectRootTab(tab) | 253 | app.selectRootTab(tab) |