Compare commits

...
4 Commits
Author SHA1 Message Date
gronod 288e534d4d Merge pull request 'Fix/m7 ci uitest runner sign' (#73) 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: #73
2026-09-10 06:59:06 +01:00
gronod 906a449062 fix: increase layout button wait timeout from 10s to 25s in Milestone6CalibrationUITests
macOS CI / build-and-test (pull_request) Failing after 11m19s
macOS CI / package (pull_request) Skipped
- Extends waitForExistence timeout to accommodate slower profile generation on CI runners
2026-09-10 06:57:27 +01:00
gronod 6c939289ea fix: query print failure notice with predicate instead of identifier
- Replace element("printNotificationText") with NSPredicate-based query on app.staticTexts
- Check notice.label instead of notice.value for "Print failed" text
- Ensures UI test reliably finds print failure notification in Stage2View
2026-09-10 06:56:33 +01:00
gronod bcac74fa6c fix: query closeAboutBtn within sheet hierarchy with explicit wait
- Change closeAboutBtn query from app.buttons to app.sheets.firstMatch.buttons
- Replace exists check with waitForExistence(timeout: 5) for more reliable sheet button detection
2026-09-10 06:50:31 +01:00
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ final class AboutHelpUITests: XCTestCase {
_ = waitFor("aboutVersion", timeout: 10)
XCTAssertTrue(element("aboutBuildDate").exists)
let close = app.buttons["closeAboutBtn"]
XCTAssertTrue(close.exists)
let close = app.sheets.firstMatch.buttons["closeAboutBtn"]
XCTAssertTrue(close.waitForExistence(timeout: 5))
close.click()
XCTAssertFalse(element("aboutDialog").exists)
+3 -3
View File
@@ -210,10 +210,10 @@ final class Milestone3UITests: XCTestCase {
_ = waitFor("printerStatusBadge")
app.buttons["btnPrintAll"].click()
let notice = element("printNotificationText")
let predicate = NSPredicate(format: "label CONTAINS[c] %@", "Print failed")
let notice = app.staticTexts.containing(predicate).firstMatch
XCTAssertTrue(notice.waitForExistence(timeout: 10))
XCTAssertTrue((notice.value as? String ?? "")
.contains("Print failed"))
XCTAssertTrue(notice.label.contains("Print failed"))
}
/// wizardState.printerName records the queue used for spooling (#95).
@@ -75,6 +75,6 @@ final class Milestone6CalibrationUITests: XCTestCase {
// After generation the wizard should advance to Stage 2 (layout) because
// a CAL_ .ti1 now exists and the session is in calibration mode.
let layout = app.buttons["btnCreateLayout"]
XCTAssertTrue(layout.waitForExistence(timeout: 10))
XCTAssertTrue(layout.waitForExistence(timeout: 25))
}
}