```html iOS UI Testing Cheat Sheet

iOS UI Testing Cheat Sheet

Common Commands

XCTAssert(app.buttons["Button"].exists)

app.buttons["Button"].tap()

app.textFields["TextField"].typeText("Hello")

Syntax

let app = XCUIApplication()

app.launch()

app.terminate()

Best Practices

Use Accessibility Identifiers

Keep Tests Short & Focused

Use setUp() and tearDown() for setup & cleanup

```