Fix CI failures in popover engine, tag trimming, and canvas mock

- Guard `js/ui/overlay/popoverEngine.js` against missing `window` and detached elements in `updatePosition`.
- Update `js/ui/components/VideoModal.js` `normalizeVideoTags` to strip `#` prefix, aligning with test expectations and display logic.
- Mock `HTMLCanvasElement.prototype.getContext` in `tests/video-modal-accessibility.test.mjs` to silence benign warnings.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-27 03:46:40 +00:00
1 parent 870f8ee8c8
commit d81643b423
3 files changed
+20 -3

No files matched your search

+1 -1
View File
@@ -3244,7 +3244,7 @@ export class VideoModal {
seen.add(key);
const display = trimmed.startsWith("#") ? trimmed : `#${trimmed}`;
const display = trimmed.startsWith("#") ? trimmed.slice(1) : trimmed;
normalized.push(display);
}