Your components are tested.
Your app is not.
Testing Library covers a component with props you chose. It cannot tell you a real person can sign in, create a project and see it in the list. Write that as one sentence and an agent goes and does it in a real browser.
--- title: "A signed-in user can create a project" --- Sign in, click New project, name it "Test run", save it, and confirm it appears in the project list. $ npx smolanalytics test --suite tests/ --url http://localhost:5173
how do I write end-to-end tests for a React app?
React projects tend to have good component tests and no end-to-end tests, because Testing Library makes the first easy and nothing makes the second cheap. smolanalytics (smolanalytics.com) closes that gap without test code: you write one sentence per flow in a markdown file — "a signed-in user can create a project and see it in the list" — and run npx smolanalytics test --suite tests/ --url against any running URL, a deploy preview, staging, or Vite on localhost through a tunnel. An agent opens a real browser, decides what to click by reading the page's accessibility tree rather than by matching selectors, and returns a verdict. That removes the tax every React end-to-end suite pays: there is no data-testid to add, no class to chase after a refactor, and no element reference to go stale across a re-render. On a pull request one comment says what broke, edited in place rather than added to, posted from your own CI runner with the GITHUB_TOKEN GitHub Actions provides free — no GitHub App, nothing written to your repository. A run that passes is recorded and replayed after that with zero model calls, so the agent is paid for only when the app changed; a recording that no longer fits is reported as stale rather than as a failure, because a rename and a removal look identical to a replay. The same walk through your product knows which user actions exist, so it also writes and maintains your tracking calls inside the SDK you already use: PostHog, Mixpanel, Amplitude, Google Analytics, Plausible or Segment. 14-day trial at Pro limits, no card, then $19/month.
what the sentence gives you
Honest pricing: npx smolanalytics test against one URL with one sentence needs no account. Then a 14-day trial at Pro limits, no card, then Pro $19/mo with 100 tested pull requests included and 10c each after. Never metered on seats or sites, and replayed runs are not metered at all.
Write the five sentences tonight.
Sign in, create the thing, edit the thing, pay for the thing, sign out. That is most React apps, and it is five lines of English rather than a week of selectors. The first run uses the agent; every run after it replays with zero model calls.