Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Record what the accessibility audit says in full about every issue

Țugui Dragoș22aa56073a18
diff --git a/PeelUITests/AccessibilityAuditTests.swift b/PeelUITests/AccessibilityAuditTests.swift
index 821b3359..c268de6c 100644
--- a/PeelUITests/AccessibilityAuditTests.swift
+++ b/PeelUITests/AccessibilityAuditTests.swift
@@ -259,9 +259,8 @@ final class AccessibilityAuditTests: XCTestCase {
if Self.isExpected(issue, element, sidebar: sidebarFrame, pageTitle: pageTitle) {
return true
}
- // An issue that names no element is known only by what it says in full.
- let what = element.map(Self.describe) ?? issue.detailedDescription
- XCTFail("\(name), \(appearance): \(issue.compactDescription) (\(what))")
+ let what = element.map(Self.describe) ?? "no element"
+ XCTFail("\(name), \(appearance): \(issue.compactDescription) (\(what)): \(issue.detailedDescription)")
return true
}
} catch {