Compare commits

...
2 Commits
Author SHA1 Message Date
gronod 3b4e61ef02 Merge pull request 'refactor: extract launchApp helper in AboutHelpUITests' (#74) from fix/m7-ci-uitest-runner-sign into develop
macOS CI / build-and-test (push) Canceled after 0s
macOS CI / package (push) Canceled after 0s
Reviewed-on: #74
2026-09-10 07:14:39 +01:00
gronod aed415bcb5 refactor: extract launchApp helper in AboutHelpUITests
macOS CI / build-and-test (pull_request) Failing after 9m44s
macOS CI / package (pull_request) Skipped
- Add private launchApp() method with wait(for:timeout:) fallback to activate()
- Replace duplicate app.launch()/activate() calls in both test methods
- Improves test reliability by ensuring app reaches runningForeground state before activation
2026-09-10 07:13:18 +01:00
+8 -3
View File
@@ -35,9 +35,15 @@ final class AboutHelpUITests: XCTestCase {
return el
}
func testAboutDialogShowsVersionAndBuildDate() throws {
private func launchApp() {
app.launch()
if !app.wait(for: .runningForeground, timeout: 10) {
app.activate()
}
}
func testAboutDialogShowsVersionAndBuildDate() throws {
launchApp()
let openAbout = app.buttons["openAboutBtn"]
XCTAssertTrue(openAbout.waitForExistence(timeout: 10))
@@ -54,8 +60,7 @@ final class AboutHelpUITests: XCTestCase {
}
func testHelpOverlaysDoNotChangeSidebarHeight() throws {
app.launch()
app.activate()
launchApp()
let toggle = app.buttons["btnToggleAllHelp"]
XCTAssertTrue(toggle.waitForExistence(timeout: 10))