diff --git a/Sources/ICCery/AboutView.swift b/Sources/ICCery/AboutView.swift index 97b9377..2960f8b 100644 --- a/Sources/ICCery/AboutView.swift +++ b/Sources/ICCery/AboutView.swift @@ -61,6 +61,7 @@ struct AboutView: View { .padding(32) .frame(width: 360) .background(Theme.panel) + .accessibilityElement(children: .contain) .accessibilityIdentifier("aboutDialog") } } diff --git a/Tests/ICCeryUITests/AboutHelpUITests.swift b/Tests/ICCeryUITests/AboutHelpUITests.swift index 1080883..ce70d58 100644 --- a/Tests/ICCeryUITests/AboutHelpUITests.swift +++ b/Tests/ICCeryUITests/AboutHelpUITests.swift @@ -52,8 +52,7 @@ final class AboutHelpUITests: XCTestCase { _ = waitFor("aboutVersion", timeout: 10) XCTAssertTrue(element("aboutBuildDate").exists) - let close = app.sheets.firstMatch.buttons["closeAboutBtn"] - XCTAssertTrue(close.waitForExistence(timeout: 5)) + let close = waitFor("closeAboutBtn", timeout: 10) close.click() XCTAssertFalse(element("aboutDialog").exists)