Repository navigation
test(web): run the catalog page tests again - #1909
Conversation
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]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Problem
Related issue: #192
Validation tasks: none
make test-webskipsweb/src/pages/Catalog.test.tsx, so none of its 35 catalog page tests run in CI. The file renders the whole app shell withrenderToStaticMarkup. The watch playback bar in that shell reads its snapshot store throughuseSyncExternalStorewith 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
@/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.WEBTEST_KNOWN_FAILURESstays in the Makefile as an empty variable, because thetest-webrecipe 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.tsc -b), budget:check andmake test-webpass.make verify-local-pathspasses.Risks
None identified. The change is test-only; CI's
make test-webnow runs 35 more tests.Checklist
AI Disclosure
App.tsximports from the playback chrome module, that no component rendered in this file needs the playback controller context, and thatmake test-webno 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
WEBTEST_KNOWN_FAILURESexclusion list in the Makefile, so web-test runs include it again.WEBTEST_KNOWN_FAILURESvariable in the Makefile.Macroscope summarized d52747d.