Repository navigation
test: browser tests expect current element behavior - #7060
Conversation
Quest-Claim: 27395e41b0f66df1
The Video renderer test now asserts that an invalid `url` or `volume` attribute keeps the last valid value, reports one page error each, and suspends media until every invalid attribute is corrected. The publish-ui version-list tests use `moq-transport-18` where they mean a supported version, since moq-transport-14 was removed. Finishes quest/m0/interop-green/stale-browser-tests.md and sizes the interop-green epic now that its last child is done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou'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 25 minutes. View limit details
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. |
kixelated
left a comment
There was a problem hiding this comment.
Automated review by review (OpenAI)
Reviewed commit: 267d41083800c6adaec110477bf45c1a34c5f2c1.
No actionable bugs found. Updating these expectations to the shipped validation contract is the right, small fix: the renderer case now checks retained values, one error per invalid attribute, and recovery only after every invalid attribute is corrected. The version-list cases retain their refusal/snapshot coverage while using a supported draft. No production API or wire changes.
Verification: static inspection of changed tests, element validation/recovery code, supported versions and migration notes. Browser tests and scheduled Interop/Video runs were not run or independently verified.
(Written by gpt-6.1-sol)
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
test/video/renderer.browser.ts— replaces the stale "invalidurl/volumeresets to default with no errors" expectation with the shipped#6904contract: last valid value kept, onepageerrorper invalid attribute, media suspended, and resume only after every invalid attribute is corrected (partial: [false, true]shows<moq-publish>resumes while<moq-watch>waits on its badvolume). MatchesattributeChangedCallback/#acceptinjs/watch/src/element.tsandjs/publish/src/element.ts.test/interop/clients/js/publish-ui.browser.ts— usesmoq-transport-18(removed draft-14replaced) wherever the test means a supported version; the refusal case still uses unsupportedmoq-lite-99.moq-transport-18/20/22are all present inVERSIONS(js/net/src/connection/connect.ts:90).- Quest bookkeeping — deletes the last child
quest/m0/interop-green/stale-browser-tests.md, drops its## Requiredlink, and retitles the epic[XS]with the Plan noting every child has landed. No dangling references remain.
Verified the element suspend/resume and version-refusal behavior against source, not just the diff. I also checked for other stale moq-transport-14..17 uses: the remaining ones (test/interop/compat/resolve.test.ts, js/net/src/connection/connect.test.ts) are a synthetic released-version list and intentional refusal cases, both out of scope. Test-only change; no public API or wire impact.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Problem
Two browser suites asserted behavior the elements no longer ship:
test/video/renderer.browser.tsexpected an invalidurlorvolumeattribute to reset to its default with no page errors. The elements now keep the last valid value, report the invalid attribute as a page error, and suspend media until it is fixed (js/watch/MIGRATE.md). This fails every Video run on main.test/interop/clients/js/publish-ui.browser.tsusedmoq-transport-14as a valid version, but moq-dev/moq#6753 removed it, so the setter throwsunsupported version.Approach
urlandvolumekeep their last valid values (https://example.invalid/,0.75);url, onevolume, three total);connection.enabledfalse). After theurlfix,<moq-publish>resumes while<moq-watch>stays suspended until itsvolumeis fixed too.moq-transport-18wherever they mean a supported draft. The refusal case already uses the unsupportedmoq-lite-99.quest/m0/interop-green/stale-browser-tests.mdand its link. That was the epic's last child, so the interop-green epic is now sized[XS]. What remains is confirming that one scheduled Interop run and one scheduled Video run pass.Took over from a stale claim (claim commit only, starting session dead), as the maintainer chose in /quest-complete on 2026-11-01.
Impact
Test and quest changes only. Public API: none. Wire: none.
Validation
just test video: 11 pass, 0 fail. The three expected page errors appear.bun test ./publish-ui.browser.ts(intest/interop/clients/js, viash/local.sh): 11 pass, 0 fail.biome checkon both files,tsc --noEmitintest/video,quest check --base origin/main: clean.Review
Local review skipped under the simple-review rule (moq-dev/quest#364): the change touches only tests and quests, so it carries no behavior risk. The online reviewers (CodeRabbit, Pullfrog) cover head 267d410.
Suggested follow-ups
(Written by Claude Opus 5.5)