Commit 02a3463eed
Unsigned
Layout: unified · split
Docs/ACCESSIBILITY.txt +30 −3
| @@ -165,9 +165,36 @@ 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 | 165 | They go on the #21 burndown; `enforcedAuditTypes` widens to cover these screens |
| 166 | once they are clear. | 166 | once they are clear. |
| 167 | 167 | ||
| 168 | The remaining Settings destinations — Display, History & Network, Local API, | 168 | The other ten destinations are covered by `testSettingsDestinations`, also |
| 169 | iCloud Sync, Monitoring Log, Monitoring Settings, Scheduled Reports, Import & | 169 | report-only. One launch audits all of them: re-selecting the Settings tab pops |
| 170 | Export, Data Management — are still unaudited. | 170 | it back to root, so each row is tapped from a known place, and the store reset |
| 171 | makes the launch state the same for every one. That is 98s for ten screens | ||
| 172 | rather than ten launches. | ||
| 173 | |||
| 174 | All ten are reachable and all ten audit. 87 findings, of which 43 are real and | ||
| 175 | 44 are already-characterised noise. **No enforced failures**, which is why the | ||
| 176 | test passes report-only rather than needing a carve-out: | ||
| 177 | |||
| 178 | | Screen | Real | Noise | | ||
| 179 | | --- | --- | --- | | ||
| 180 | | Monitoring Settings | 12 | 1 | | ||
| 181 | | History & Network | 7 | 5 | | ||
| 182 | | Scheduled Reports | 5 | 1 | | ||
| 183 | | Monitoring Log | 4 | 1 | | ||
| 184 | | Import & Export | 4 | 5 | | ||
| 185 | | Display | 3 | 1 | | ||
| 186 | | Local API | 3 | 5 | | ||
| 187 | | Data Management | 2 | 8 | | ||
| 188 | | App Info | 2 | 15 | | ||
| 189 | | iCloud Sync | 1 | 2 | | ||
| 190 | |||
| 191 | By category the 43 are: `dynamicType` 21, `textClipped` 15, `contrast` 6, | ||
| 192 | `elementDetection` 1. The shape matches the rest of the burndown — text that | ||
| 193 | does not scale and text that clips at large sizes, concentrated in the | ||
| 194 | settings forms with the most rows. | ||
| 195 | |||
| 196 | App Info is the inverse: 17 findings, 2 real, the rest system-field and | ||
| 197 | unattributed artefacts already characterised in `noiseReason(for:)`. | ||
| 171 | 198 | ||
| 172 | ## Recent searches are never audited | 199 | ## Recent searches are never audited |
| 173 | 200 | ||
DomainDigUITests/AccessibilityAuditTests.swift +60
| @@ -248,6 +248,66 @@ final class AccessibilityAuditTests: XCTestCase { | |||
| 248 | try XCTSkipUnless(audited, "Audit did not complete in time for the integration editor") | 248 | try XCTSkipUnless(audited, "Audit did not complete in time for the integration editor") |
| 249 | } | 249 | } |
| 250 | 250 | ||
| 251 | /// Every remaining screen behind a Settings row. | ||
| 252 | /// | ||
| 253 | /// Integrations and the integration editor were covered in !42; these are | ||
| 254 | /// the ten that were still unaudited, which was the largest blind spot left | ||
| 255 | /// in the suite — five phases of row and caption treatment shipped without | ||
| 256 | /// any of them being rendered under audit. | ||
| 257 | /// | ||
| 258 | /// Report-only for the same reason as Integrations: they have never been | ||
| 259 | /// through the ratchet, so gating them on first contact would fail the | ||
| 260 | /// build on findings that predate the coverage. They are a burndown list | ||
| 261 | /// for #21, and `enforcedAuditTypes` widens once they are clear. | ||
| 262 | /// | ||
| 263 | /// One launch rather than ten: re-selecting the Settings tab pops it back | ||
| 264 | /// to root, so each destination is reached from a known place, and the | ||
| 265 | /// store reset means the launch state is the same for all of them. | ||
| 266 | func testSettingsDestinations() throws { | ||
| 267 | let destinations = [ | ||
| 268 | "Display", | ||
| 269 | "History & Network", | ||
| 270 | "Monitoring Log", | ||
| 271 | "Local API", | ||
| 272 | "iCloud Sync", | ||
| 273 | "Monitoring Settings", | ||
| 274 | "Scheduled Reports", | ||
| 275 | "Import & Export", | ||
| 276 | "Data Management", | ||
| 277 | "App Info" | ||
| 278 | ] | ||
| 279 | |||
| 280 | let app = AccessibilityAuditHarness.launch() | ||
| 281 | var unreachable: [String] = [] | ||
| 282 | var unaudited: [String] = [] | ||
| 283 | |||
| 284 | for destination in destinations { | ||
| 285 | // Pops any previous push, so each row is tapped from the root. | ||
| 286 | app.selectRootTab("Settings") | ||
| 287 | |||
| 288 | let row = app.buttons[destination] | ||
| 289 | guard row.waitForExistence(timeout: 5) else { | ||
| 290 | unreachable.append(destination) | ||
| 291 | continue | ||
| 292 | } | ||
| 293 | row.tap() | ||
| 294 | |||
| 295 | let screen = destination | ||
| 296 | .lowercased() | ||
| 297 | .replacingOccurrences(of: " & ", with: "-") | ||
| 298 | .replacingOccurrences(of: " ", with: "-") | ||
| 299 | if try !AccessibilityAuditHarness.audit(app, screen: screen, test: self, reportOnly: true) { | ||
| 300 | unaudited.append(destination) | ||
| 301 | } | ||
| 302 | } | ||
| 303 | |||
| 304 | XCTAssertEqual(unreachable, [], "Settings no longer offers these rows") | ||
| 305 | try XCTSkipUnless( | ||
| 306 | unaudited.isEmpty, | ||
| 307 | "Audit did not complete in time for: \(unaudited.joined(separator: ", "))" | ||
| 308 | ) | ||
| 309 | } | ||
| 310 | |||
| 251 | private func auditRootTab(_ tab: String) throws { | 311 | private func auditRootTab(_ tab: String) throws { |
| 252 | let app = AccessibilityAuditHarness.launch() | 312 | let app = AccessibilityAuditHarness.launch() |
| 253 | app.selectRootTab(tab) | 313 | app.selectRootTab(tab) |