Remove redundant tests and brittle verification scripts#66

merged1
fix/client-hub-video-embeds
chore/test-suite-cleanup
openedOct 2, 2026bySScreen
View on GitHubTwo-way sync enabledPR last imported Oct 22, 2026

The test suite contains duplicated cases, assertions on fixtures that never enter the code under test, source-string checks, and UI tests pinned to editorial copy and retired layout details. This cleanup removes those checks and keeps the tests that exercise product behavior. It is based on the video-embed fix in #65; the diff here contains only the test cleanup and its documentation.

Unit tests drop from 86 to 70, and browser journeys drop from 22 to 18. All 117 backend tests and both CSP tests remain. The change deletes five obsolete verification scripts and removes 1,672 lines overall. docs/testing.md explains the coverage, each removal, how to run the suites, and their limits.

The retained output-controller test now checks actual persisted review state instead of an untouched project/salary fixture. The backup test now round-trips real nonempty records and actually supplies values it checks for exclusion. Local project creation and opening helpers use the current dialog and full-page view. Fixed pixel/color/class assertions are removed while real scrolling, navigation, keyboard, persistence, and payment checks remain.

Production verification now uses one built-app smoke script: route status/content type, expected 404s, and desktop/mobile main-content visibility, keyboard entry, runtime errors, and 200% text resizing. Exact HTML wording and Firefox PNG-size checks are removed. The full command keeps the dependency audit but runs it last so audit failures no longer hide test results. The manual brand/accessibility/deployment diagnostics remain available.

Validation:

  • pnpm check:full completed the UI import check, app and marketing type checks, production build, all 70 unit tests, all 117 Convex tests, both CSP checks, and the rewritten production smoke checks. It then failed on the existing dependency audit (18 vulnerabilities); dependency versions are unchanged.
  • Five workspace-layout browser journeys passed, covering persistent navigation, command-menu keyboard use, direct project URLs/back, sample isolation, and project creation from another route.
  • Three additional browser journeys passed after updating stale helpers: local creation/reload, backup export/restore, and shell scrolling.
  • Final app type check, formatting and whitespace checks passed. All three skill-mirror tooling tests passed and all 62 mirror files matched.
  • The full 18-journey Playwright suite and the authenticated cloud journey were not validated. Browser workflows remain a separate command, outside the current CI/check:full pipeline. Live YouTube/Vimeo availability and embed permissions are also outside markup tests.

Tradeoff: removed source/geometry checks no longer freeze internal page-family markup, exact gutters, colors or special inspector layouts. This change does not claim comprehensive visual-regression coverage. Backend authorization, billing, quota and public-data privacy coverage remains intact.

Checks

1 failing · 5 successful
Some checks were not successful

Failing1

492b7bd

Added 1 commit

  • Remove redundant tests and replace brittle verification scripts492b7bd
Synced from GitHub

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 694788be-49ff-4977-a076-51a924592a30

📥 Commits

Reviewing files that changed from the base of the PR and between a6e8247372691a8768bac6ab4a3b0b715c8f5d30 and 492b7bd28f2757d7a8a51845b2d46f23762a6d67.

📒 Files selected for processing (21)
  • CONTRIBUTING.md
  • README.md
  • docs/README.md
  • docs/testing.md
  • e2e/helpers.ts
  • e2e/local-project.spec.ts
  • package.json
  • scripts/check-workspace-layout.mjs
  • scripts/verify-browser-smoke.mjs
  • scripts/verify-production.mjs
  • scripts/verify-relay-rebuild.mjs
  • scripts/verify-ui-interactions.mjs
  • scripts/verify.mjs
  • src/app/client-portal/client-portal-view.test.ts
  • src/app/providers.test.tsx
  • src/components/subscription-plans.test.tsx
  • src/components/workspace-page/workspace-page.test.tsx
  • src/features/project-outputs/project-output-controller.test.ts
  • src/features/project-outputs/project-output-domain.test.ts
  • src/features/projects/project-table-domain.test.ts
  • src/lib/workspace-backup.test.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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

Comment @coderabbitai help to get the list of available commands.