Compare commits

...
2 Commits
Author SHA1 Message Date
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
2 changed files with 4 additions and 4 deletions
+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))
}
}