Files
Reflect/Tests iOS
Trey t 599e54aa72 Add 5 passing UI tests (batches 1-2) and mark 4 blocked tests RED
Batch 1: TC-035 (donut chart), TC-036 (bar chart) — Year View stats
Batch 2: TC-037 (collapse/expand), TC-065 (privacy link), TC-066 (EULA link)
Blocked: TC-124, TC-068 (Settings ScrollView tap issue), TC-038 (share sheet)

New accessibility IDs: bypass subscription toggle, EULA, privacy policy buttons.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 10:02:17 -06:00
..

Tests iOS README

Purpose

Tests iOS/ contains XCTest-based UI tests for the iOS app.

Start Here Before Adding Tests

  1. Read /Users/treyt/Desktop/code/Feels/docs/XCUITest-Authoring.md.
  2. Reuse BaseUITestCase and helpers in Helpers/.
  3. Reuse screen objects in Screens/ before writing inline query logic.

Required Pattern

  • Test class inherits BaseUITestCase.
  • Selectors use UITestID / accessibility identifiers first.
  • Waiting/tapping uses helper methods (tapWhenReady, waitForDisappearance, etc).
  • New app interactions get IDs in /Users/treyt/Desktop/code/Feels/Shared/AccessibilityIdentifiers.swift.

Anti-Patterns

  • sleep(...)
  • Selector logic based only on localized labels
  • Duplicating navigation logic instead of using Screens/*

Useful Paths

  • /Users/treyt/Desktop/code/Feels/Tests iOS/Helpers/BaseUITestCase.swift
  • /Users/treyt/Desktop/code/Feels/Tests iOS/Helpers/WaitHelpers.swift
  • /Users/treyt/Desktop/code/Feels/docs/templates/XCUITestSuiteTemplate.swift