What problem does it solve?
This Skill solves flaky and hard-to-maintain XCUITest UI test failures by giving practical, Swift 6-focused patterns for element querying, waiting, assertions, permissions handling, and diagnostics.
Core Features & Use Cases
- Element querying and interaction patterns for XCUIApplication, XCUIElementQuery, and XCUIElement (including predicates and chained queries).
- Reliable synchronization via wait strategies (waitForExistence, XCTWaiter, and key-path-based wait(for:toEqual:timeout:)), plus waiting for non-existence.
- Test stability support for Swift 6 concurrency (@MainActor), launch arguments/environment configuration, system permission dialogs, and automatic screenshots on failure.
- UI automation diagnostics including page-object style helpers and screenshot attachments extracted from .xcresult.
Quick Start
Use the xcuitest skill to write a Swift 6 XCUITest that reliably waits for a "Submit" button, taps it, asserts the "Done" state, and attaches a screenshot when the test fails.