Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Make the accessibility audit run faster
Țugui Dragoșe50496c4483a
diff --git a/Peel.xcodeproj/xcshareddata/xcschemes/PeelUITests.xcscheme b/Peel.xcodeproj/xcshareddata/xcschemes/PeelUITests.xcschemeindex 46f4eb81..08e1539d 100644--- a/Peel.xcodeproj/xcshareddata/xcschemes/PeelUITests.xcscheme+++ b/Peel.xcodeproj/xcshareddata/xcschemes/PeelUITests.xcscheme@@ -26,7 +26,9 @@buildConfiguration = "Debug"selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"- shouldUseLaunchSchemeArgsEnv = "YES">+ shouldUseLaunchSchemeArgsEnv = "YES"+ systemAttachmentLifetime = "keepNever"+ preferredScreenCaptureFormat = "screenshots"><Testables><TestableReferenceskipped = "NO">diff --git a/PeelUITests/AccessibilityAuditTests.swift b/PeelUITests/AccessibilityAuditTests.swiftindex bef98b21..f29c571e 100644--- a/PeelUITests/AccessibilityAuditTests.swift+++ b/PeelUITests/AccessibilityAuditTests.swift@@ -92,8 +92,8 @@ final class AccessibilityAuditTests: XCTestCase {}private static func describe(_ element: XCUIElement?) -> String {- guard let element, element.exists else { return "no element" }- return "\(element.elementType.rawValue) '\(element.label)' '\(element.identifier)' \(element.frame)"+ guard let element, let found = try? element.snapshot() else { return "no element" }+ return "\(found.elementType.rawValue) '\(found.label)' '\(found.identifier)' \(found.frame)"}/// A page's tab or a pane of Settings, found by its name, whatever kind of element the system shows it as.@@ -122,7 +122,7 @@ final class AccessibilityAuditTests: XCTestCase {/// scan starts.private func waitForTheScan(of page: String, in app: XCUIApplication) {let stop = app.toolbars.buttons["Stop"]- guard stop.waitForExistence(timeout: 2) else { return }+ guard stop.waitForExistence(timeout: 1) else { return }XCTAssertTrue(stop.waitForNonExistence(timeout: 300), "\(page) was still scanning after 5 minutes")}