fix(uitest): resolve AboutHelp close button lookup on runner #75
@@ -61,6 +61,7 @@ struct AboutView: View {
|
|||||||
.padding(32)
|
.padding(32)
|
||||||
.frame(width: 360)
|
.frame(width: 360)
|
||||||
.background(Theme.panel)
|
.background(Theme.panel)
|
||||||
|
.accessibilityElement(children: .contain)
|
||||||
.accessibilityIdentifier("aboutDialog")
|
.accessibilityIdentifier("aboutDialog")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,8 +52,7 @@ final class AboutHelpUITests: XCTestCase {
|
|||||||
_ = waitFor("aboutVersion", timeout: 10)
|
_ = waitFor("aboutVersion", timeout: 10)
|
||||||
XCTAssertTrue(element("aboutBuildDate").exists)
|
XCTAssertTrue(element("aboutBuildDate").exists)
|
||||||
|
|
||||||
let close = app.sheets.firstMatch.buttons["closeAboutBtn"]
|
let close = waitFor("closeAboutBtn", timeout: 10)
|
||||||
XCTAssertTrue(close.waitForExistence(timeout: 5))
|
|
||||||
close.click()
|
close.click()
|
||||||
|
|
||||||
XCTAssertFalse(element("aboutDialog").exists)
|
XCTAssertFalse(element("aboutDialog").exists)
|
||||||
|
|||||||
Reference in New Issue
Block a user