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.

Choose a page from the View menu's own items in the accessibility audit

Țugui Dragoșc4d036c60d63
diff --git a/PeelUITests/AccessibilityAuditTests.swift b/PeelUITests/AccessibilityAuditTests.swift
index 5266b79e..bef98b21 100644
--- a/PeelUITests/AccessibilityAuditTests.swift
+++ b/PeelUITests/AccessibilityAuditTests.swift
@@ -114,7 +114,8 @@ final class AccessibilityAuditTests: XCTestCase {
private func choose(_ item: String, inMenu menu: String, of app: XCUIApplication) {
let title = app.menuBars.menuBarItems[menu]
title.click()
- title.menuItems[item].click()
+ // The menu's own items only: View > Sort and Filter holds a Homebrew and a Developer of its own.
+ title.menus.firstMatch.children(matching: .menuItem)[item].click()
}
/// Waits for the page's scan to end. While one runs, the toolbar's Rescan turns into Stop, a moment after the