Repository navigation
test(studio): the preview regression passes on macOS - #8484
Conversation
…acOS gamma filter
jrusso1020
left a comment
There was a problem hiding this comment.
Approve.
Need ✅ · Size ✅ (+3/−3, one e2e script) · Reuse ✅ · Simpler ✅ · Structure ✅
Risk: none to the product. Only the regression script changes, and on Linux the narrower selector matches the same covers.
Checked at c9cd229. The extra element is the runtime's own native-video-look filter holder, not something Chromium adds. Where nativeVideoLookNeeded() is true, nativeVideoLook.ts:39-41 appends a single shared <svg width="0" height="0"> carrying data-hf-preview-video-canvas. It carries the attribute so that authoredSource.ts:145 strips it on save. That holder is meant to stay, so the cover checks should count only canvas[data-hf-preview-video-canvas], the paused-frame stand-ins pausedVideoFrames.ts:185 creates. All three checks are narrowed consistently. The preview-regression and Preview parity CI steps pass.
Nit: the body attributes the SVG to macOS Chromium. It's the runtime's ensureFilter (nativeVideoLook.ts:31), present wherever the native look is needed.
— Rames (hf-review)
What
preview-video-regression.mjschecks that Studio's decoded paused-frame covers are gone (after play, and in the native-delivery steps) by counting[data-hf-preview-video-canvas]. It now countscanvas[data-hf-preview-video-canvas], so the script passes on macOS as it does on Linux. Test only.Why
On macOS Chromium the runtime also adds a 0x0, hidden SVG holding the gamma filter that makes a cover look like the browser's video layer (
nativeVideoLook.ts). That SVG carries the same mark so saved source strips it, and it stays in the page after the covers clear. So on macOS the count never reaches 0, and the script times out after play ("Waiting failed: 30000ms exceeded"). Linux never adds the SVG, which is why CI passes. Every real cover does clear on play: checked in a headed and a headless Chrome on macOS.Test plan
packages/studio/tests/e2e/preview-video-regression.mjson macOS (Apple Silicon, Chrome 155, Studio dev server, fixture generated fresh): atmain, unsealed fails at the after-play cover check, as did 6 of 6 earlier runs (3 unsealed, 3 sealed).No visible change
Only the end-to-end script changes; nothing a person sees in Studio.
Related work
Refs #8466, Refs #8470.