# joemasilotti/UI-Testing-Cheat-Sheet

How do I test this with UI Testing?

Repository: https://github.com/joemasilotti/UI-Testing-Cheat-Sheet
Canonical: https://ross.abutalabs.com/products/ui-testing-cheat-sheet
Homepage: http://masilotti.com/ui-testing-cheat-sheet/
Language: Swift
License Family: other
Topics: xcuitest, xctest, ui-testing, cheatsheet, swift
Last push: 2020-04-29T20:42:52+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4013, "days_push": 2317, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2166, forks 170 (observed 2026-08-28T04:06:21.386360+00:00)

## What it is
A companion repository for the UI Testing Cheat Sheet blog post, containing working XCUITest example code in Swift. It demonstrates common iOS UI testing patterns like waiting for elements, tapping buttons, typing text, and handling system alerts.

## Use cases
- learn how to write XCUITest UI tests for iOS apps
- find example code for tapping buttons and typing text in UI tests
- handle system alerts and permission dialogs in XCTest
- wait for elements to appear in iOS UI tests
- test interactions like pull to refresh and table cell reordering
- reference snippets for testing web view links and pickers

## When to choose
- you are writing XCUITest-based UI tests for an iOS app in Swift
- you need copy-paste examples for common UI testing interactions
- you are learning iOS UI testing beyond Xcode's recording feature

## When to avoid
- you need UI testing for Android or cross-platform apps
- you need a maintained testing framework rather than example snippets
- you use a newer Xcode/Swift version and need up-to-date APIs (last updated for Xcode 11.4.1)

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: testing, e2e-testing, developer-tools
- domain: testing, mobile-development, tutorials, developer-tools
- platform: -
- tags: xcuitest, xctest, ui-testing, cheat-sheet, ios, swift, example-code, mobile

## Member repositories
- joemasilotti/UI-Testing-Cheat-Sheet (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:21.386360+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:49:56.987878+00:00, confidence not recorded.
  - readme: https://github.com/joemasilotti/UI-Testing-Cheat-Sheet (fetched 2026-08-28T04:06:21.386360+00:00, sha 3e97d44c22c9)
  - homepage: http://masilotti.com/ui-testing-cheat-sheet/ (fetched 2026-08-29T10:29:45.373363+00:00, sha 1dd8a2bdbd55)
  - site_page: https://masilotti.com/about (fetched 2026-08-29T10:29:45.377646+00:00, sha 5dcecc99f16c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
