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.

Audit the Terminal page and every tab of Tweaks and Terminal

Țugui Dragoș3e60dc97db7a
diff --git a/PeelUITests/AccessibilityAuditTests.swift b/PeelUITests/AccessibilityAuditTests.swift
index a4b48215..db3d7d6d 100644
--- a/PeelUITests/AccessibilityAuditTests.swift
+++ b/PeelUITests/AccessibilityAuditTests.swift
@@ -16,12 +16,18 @@ final class AccessibilityAuditTests: XCTestCase {
/// Every page, in the order of the View menu, which is the sidebar's.
private static let pages = [
- "Home", "Tweaks", "History",
+ "Home", "Tweaks", "Terminal", "History",
"Applications", "Orphaned Files", "Intel Software", "Package Receipts", "Homebrew",
"Space", "Developer", "Build Artifacts", "Installers and Backups", "Duplicates", "iCloud Drive", "File Search",
"Background Items", "Extensions", "Plug-ins",
]
+ /// The tabs of the pages that have them, each audited on its own.
+ private static let tabs = [
+ "Tweaks": ["Dock", "Screenshots", "Finder", "Typing", "Windows", "Privacy"],
+ "Terminal": ["Themes", "Terminal", "Shell", "Git", "SSH", "Tools"],
+ ]
+
private static let settingsPanes = ["General", "Exclusions", "Privacy", "Helper"]
func testEverythingInTheLightAppearance() {
@@ -51,7 +57,14 @@ final class AccessibilityAuditTests: XCTestCase {
for page in Self.pages {
choose(page, inMenu: "View", of: app)
waitForTheScan(of: page, in: app)
- audit(page, appearance: appearance, of: app)
+ guard let tabs = Self.tabs[page] else {
+ audit(page, appearance: appearance, of: app)
+ continue
+ }
+ for tab in tabs {
+ app.radioButtons[tab].firstMatch.click()
+ audit("\(page), \(tab)", appearance: appearance, of: app)
+ }
}
choose("About Peel", inMenu: "Peel", of: app)