Frontmatter
| id | 8815 |
| title | Fix unit test failure in Parse5Processor.spec.mjs |
| state | Closed |
| labels | bugtesting |
| assignees | tobiu |
| createdAt | Jan 19, 2026, 6:02 PM |
| updatedAt | Jan 19, 2026, 6:05 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8815 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 19, 2026, 6:05 PM |
Fix unit test failure in Parse5Processor.spec.mjs
tobiu assigned to @tobiu on Jan 19, 2026, 6:04 PM

tobiu
Jan 19, 2026, 6:05 PM
Input from Gemini 3 Pro:
✦ I have added the missing import of
setup()fromtest/playwright/setup.mjstotest/playwright/unit/functional/Parse5Processor.spec.mjs. This ensuresDOMRectis polyfilled in the test environment. Tests passed successfully. Closing ticket.
tobiu closed this issue on Jan 19, 2026, 6:05 PM
The test
test/playwright/unit/functional/Parse5Processor.spec.mjsfails withReferenceError: DOMRect is not definedbecause it lacks the test setup polyfills. We need to import and invoke thesetup()function fromtest/playwright/setup.mjsto provide theDOMRectmock.