Skip to content

feat(qa): feature map with Playwright click and visual verification - #242

Merged
nullStack65 merged 13 commits into
release/native-0.1.10from
qa/clo-1299-feature-qa
Nov 27, 2026
Merged

nullStack65 merged 13 commits into
release/native-0.1.10from
qa/clo-1299-feature-qa

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Problem

Kameron (CLO-1299): the web app is "still super buggy and unusable", and nothing records what its features are or whether each one works. The existing feature-map.md names labels and shortcuts but has no user path, drive steps, success state or verified status, and scripts/scenarios proves single bug fixes, not whole features.

What this adds

  • qa/features.ts: 71 user-facing features (sidebar and threads, thread view, composer, panels, palette, pages, 21 settings sections, themes, environments, onboarding, boot recovery, Closura-specific ones). Each has the user path, Playwright drive steps, the observable success state and the code that implements it. Seven cannot be driven on this harness and say why (queue/steer timing, secrets, linking a second server, usage-limit banner and auto-resume, delegates, html_render, PR links). sidebar.status-live (Limited/Failed pill going stale after a provider switch) is added as unverified with the reported repro; it needs a fake provider that emits a usage_limit failure then a second run.
  • qa/specs: one Playwright spec per feature, run in four projects (desktop 1440 and phone 390, light and dark) against the production web build on a fresh seeded home that uses the free Replay agent, with every real provider disabled. One command: node qa/verify.ts. It writes qa/status.json (verified, broken or unverified per feature, with the commit) and renders docs/FEATURES.md and a screenshot report.
  • qa/check-map.ts: fails when the map and the specs disagree, and with --changed <base> fails a PR that changes a feature's code without touching a matching entry, spec or status. Proven on a throwaway branch: a sidebar edit alone fails, the same edit plus an entry change passes.
  • .github/workflows/closura-feature-qa.yml: same trust gate and ARC runner as closura-arc-ci.yml. A PR runs the map check plus two projects (desktop-light, phone-dark); manual runs take any list.

First sweep

At 01d8b19 on a clean tree: 63 verified, 0 broken, 7 unverified of 70 (250 of 252 runs passed, 2 skipped by design). Found and fixed on the way: CLO-1310, the boot dead-end (#240, merged). Several of my own specs were wrong at first (one passed on text left by the seeded turn, one answered the seeded question and consumed its state); they were rewritten to prove what they claim.

Limits, stated plainly

  • This was not run against t3code.closura.ai. It sits behind founders-only email OTP Access with no service-token policy, so I cannot sign in without widening Access. The suite takes T3_QA_BASE_URL plus CF_ACCESS_CLIENT_ID/SECRET once ARC Ops adds a test policy.
  • Visual baselines are not committed. They depend on the machine image, so ARC baselines must be generated on ARC (workflow_dispatch with update_baselines). Until then visual comparisons are reported as pending, never as passing.
  • The pre-push check:changed runs against origin/main by default and hangs on this fork; I ran it against the release base. format, knip and typecheck report failures that are all on the base (12 other unformatted files, two unused .github/scripts files, web test type errors), none in qa/.

Prior art

  • poteto-kit / pstack (one entry per feature with user path, agent drive steps and observable state; one verify command; status tied to a commit): adopted the shape, adapted to TypeScript data plus Playwright. Verdict: adopt the pattern, not the kit (Cursor-centric, markdown files, no Playwright).
  • scripts/scenarios (e2e framework): kept for per-bug proofs; too heavy and per-bug for a whole-app feature sweep. Verdict: reuse its seeding approach, not its runner.
  • Playwright 1.64.1 was already in the lockfile; the only dependency change is a new qa workspace entry.
    Searched: poteto-kit README, selfaligned.me poteto post, thakicloud pstack article, repo scripts/scenarios, 2026-11-27.

Browser proof

URL: local production build of 9fd13fa + #240 (http://127.0.0.1:, throwaway home). Time: 2026-11-27, 14:00–14:30 ET. Result: 250 passed, 0 failed, 2 skipped across desktop 1440 / phone 390 in light and dark. Screenshots: qa/report/shots/<feature>/<project>--<name>.png (CI uploads them as the feature-qa-report artifact; the packed report goes to docs.closura.ai through Closura). Gaps: see Limits.

Deploy: none

🤖 Generated with Claude Code

nullStack65 and others added 6 commits November 27, 2026 13:55
The web app had no record of what its features are or whether each one works.
qa/features.ts now lists 70 user-facing features, each with the user path, the
Playwright drive steps, the observable success state and the code that
implements it. qa/specs drives every one in a real browser at desktop (1440)
and phone (390) widths in light and dark, against the production web build on
a seeded home that uses the free Replay agent. qa/verify.ts runs it and writes
qa/status.json and docs/FEATURES.md with the commit each status was proven on;
a feature no spec can drive says why it is unverified.

qa/check-map.ts fails when the map and the specs disagree, and in CI fails a
PR that changes a feature's code without touching its entry, spec or status.
The workflow runs on the ARC runner with the existing trust gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…val spec

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… one phone project

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…d the sidebar status-live entry

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

nullStack65 and others added 7 commits November 27, 2026 15:02
CI's frozen install failed with ERR_PNPM_OUTDATED_LOCKFILE because the qa
importer still listed @effect/vitest and vite-plus.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- a partial run no longer rewrites status.json or docs/FEATURES.md, and a
  failed Playwright run exits nonzero
- a visual comparison without a baseline is reported as pending, not verified
- the PR gate sees renames as a delete plus an add, and a settings row edit
  counts as updating the settings entries
- the workflow passes dispatch input and the base ref through env vars
- specs assert real state: sidebar moves, command output text, model picker
  and terminal close, attachment removal, palette input scoped to its dialog

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…artifacts

The first ARC run failed 54 of 126 runs: text had no size so headings read as
hidden, and the browser closed under some runs. The latency gate in
closura-arc-ci.yml already sets FONTCONFIG_FILE with a writable cache; this job
now does the same and fails loudly when the image has no fonts. The artifact now
includes the failure screenshots and error context.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The image has none under /usr/share/fonts; the downloaded libraries pull in
fonts-dejavu-core under the job temp dir, as in the latency gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
On a phone the draft's composer can take focus and close the Permissions menu
under the click; the sweep failed on both phone projects with a detached
element. The step now retries until the button reads Supervised.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…a marked partial report

verify.ts deleted every screenshot before a partial run and never wrote the
report page, so the CI artifact (two projects) had screenshots and no index.
It now removes only the screenshots it recreates and renders qa/report/index.html
marked partial, leaving status.json and docs/FEATURES.md alone. Checked with a
real --project phone-dark run: both files byte-identical, all four projects'
screenshots kept.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nullStack65
nullStack65 merged commit 8ff44f5 into release/native-0.1.10 Nov 27, 2026
7 checks passed
@nullStack65
nullStack65 deleted the qa/clo-1299-feature-qa branch November 27, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant