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
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 19, 2026, 6:05 PM

Fix unit test failure in Parse5Processor.spec.mjs

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
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.