Skip to content

test(web): run the catalog page tests again - #1909

Merged
Quick104 merged 1 commit into
feat/collections-revampfrom
test/catalog-page-tests
Oct 4, 2026
Merged

Quick104 merged 1 commit into
feat/collections-revampfrom
test/catalog-page-tests

Conversation

@Quick104

@Quick104 Quick104 commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #192
Validation tasks: none

make test-web skips web/src/pages/Catalog.test.tsx, so none of its 35 catalog page tests run in CI. The file renders the whole app shell with renderToStaticMarkup. The watch playback bar in that shell reads its snapshot store through useSyncExternalStore with no server snapshot, which a static render can't complete, so the suite fails during setup. The collections redesign adds tests for the catalog page's collection actions to this file, so it has to run again first.

This PR stubs the playback chrome in that test and removes the file from WEBTEST_KNOWN_FAILURES, which leaves the list empty.

Approach

  • The test mocks @/playback/WatchPlaybackChrome: the provider renders its children, and the host and bar render nothing. The catalog page doesn't use the playback chrome. The file already mocks the layouts and the item grid, the components here that would call the playback controller hook, so nothing rendered needs the real provider.
  • No production code changes. The missing server snapshot causes no problem in the browser. A future test that statically renders the full app shell will need the same stub.
  • WEBTEST_KNOWN_FAILURES stays in the Makefile as an empty variable, because the test-web recipe and the contributor docs still refer to it.

Validation

  • Catalog.test.tsx: 35 of 35 pass. With the base branch's copy of the file, the suite fails during setup and runs none.
  • Web: lint (no errors; the warnings are all in files this PR doesn't touch), format:check, build (which runs tsc -b), budget:check and make test-web pass.
  • make verify-local-paths passes.
  • No Go, contract or migration files changed, so the Go and contract checks were not run.

Risks

None identified. The change is test-only; CI's make test-web now runs 35 more tests.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code subagents (implementer, independent reviewer)
  • Model(s): claude-opus-5-5[1m]
  • Involvement: Fully AI-generated, human review pending
  • Adversarial review: An independent reviewer subagent read the diff and ran the test file with and without the stub; without it, the suite fails during setup. It checked that the stub covers the three exports App.tsx imports from the playback chrome module, that no component rendered in this file needs the playback controller context, and that make test-web no longer excludes the file. It found no problems, and nothing changed as a result.

🤖 Generated with Claude Code

Note

Re-enable Catalog page web tests and mock playback components

  • Removes the Catalog test file from the WEBTEST_KNOWN_FAILURES exclusion list in the Makefile, so web-test runs include it again.
  • Adds module mocks in Catalog.test.tsx for the playback provider, host, and bar. The provider renders its children directly; the host and bar render nothing.
  • Risk: any future Catalog test failures now fail the web-test run instead of being silently excluded — check the WEBTEST_KNOWN_FAILURES variable in the Makefile.

Macroscope summarized d52747d.

Catalog.test.tsx sat in WEBTEST_KNOWN_FAILURES because its static render
of the app shell failed: the watch playback bar reads its snapshot store
through useSyncExternalStore with no server snapshot, which a server
render can't complete. The catalog page doesn't use the playback chrome,
so the test stubs it and all 35 cases pass. The exclusion goes, so
make test-web runs the file again and later collection-page tests can
live in it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 59419f8e-8342-437c-9ff1-13d198a2d079

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · 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

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T12:35:29.174564Z d52747d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Quick104
Quick104 merged commit 3978091 into feat/collections-revamp Oct 4, 2026
14 checks passed
@Quick104
Quick104 deleted the test/catalog-page-tests branch October 4, 2026 19:16
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