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.

The accessibility audit's light run is light on a Mac set to dark

Țugui Dragoș3a754ba5922e
diff --git a/PeelUITests/AccessibilityAuditTests.swift b/PeelUITests/AccessibilityAuditTests.swift
index cecf3c41..a4b48215 100644
--- a/PeelUITests/AccessibilityAuditTests.swift
+++ b/PeelUITests/AccessibilityAuditTests.swift
@@ -36,12 +36,15 @@ final class AccessibilityAuditTests: XCTestCase {
continueAfterFailure = true
let app = XCUIApplication()
// In English, so menus are found by their titles, and in the appearance asked for. Arguments come before
- // the Mac's own settings, for Peel alone.
+ // the Mac's own settings, for Peel alone. On a Mac set to dark, `AppleInterfaceStyle` alone leaves Peel
+ // dark; `NSRequiresAquaSystemAppearance` makes the system "always apply a light appearance" (Apple,
+ // Choosing a Specific Appearance for Your macOS App).
app.launchArguments = [
"-AppleLanguages", "(en)",
"-AppleLocale", "en_US",
"-AppleInterfaceStyleSwitchesAutomatically", "NO",
"-AppleInterfaceStyle", appearance,
+ "-NSRequiresAquaSystemAppearance", appearance == "Light" ? "YES" : "NO",
]
app.launch()