LearnNewsExamplesServices
Frontmatter
id8815
titleFix unit test failure in Parse5Processor.spec.mjs
stateClosed
labels
bugtesting
assigneestobiu
createdAtJan 19, 2026, 6:02 PM
updatedAtJan 19, 2026, 6:05 PM
githubUrlhttps://github.com/neomjs/neo/issues/8815
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 19, 2026, 6:05 PM

Fix unit test failure in Parse5Processor.spec.mjs

Closed v11.23.0 bugtesting
tobiu
tobiu commented on Jan 19, 2026, 6:02 PM

The test test/playwright/unit/functional/Parse5Processor.spec.mjs fails with ReferenceError: DOMRect is not defined because it lacks the test setup polyfills. We need to import and invoke the setup() function from test/playwright/setup.mjs to provide the DOMRect mock.

tobiu added the bug label on Jan 19, 2026, 6:02 PM
tobiu added the testing label on Jan 19, 2026, 6:02 PM
tobiu referenced in commit 4504acf - "fix: Add test setup to Parse5Processor.spec.mjs to polyfill DOMRect (#8815)" on Jan 19, 2026, 6:03 PM
tobiu assigned to @tobiu on Jan 19, 2026, 6:04 PM
tobiu
tobiu Jan 19, 2026, 6:05 PM

Input from Gemini 3 Pro:

✦ I have added the missing import of setup() from test/playwright/setup.mjs to test/playwright/unit/functional/Parse5Processor.spec.mjs. This ensures DOMRect is polyfilled in the test environment. Tests passed successfully. Closing ticket.

tobiu closed this issue on Jan 19, 2026, 6:05 PM