webdriverio/webdriverio
在 GitHub 查看[🐛 Bug]: Component testing error from wizard 'Unable to parse HTML; parse5 error code eof-in-script-html-comment-like-text'
Open
#13,254 建立於 2024年8月1日
Bug 🐛help wanted
描述
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
latest
Node.js Version
20.11.1
Mode
WDIO Testrunner
Which capabilities are you using?
No response
What happened?
Using the above wizard config, when you run the tests you get this message:
'Unable to parse HTML; parse5 error code eof-in-script-html-comment-like-text'
What is your expected behavior?
No response
How to reproduce the bug.
Run the wizard as a new project using the configuration in screenshot above
Relevant log output
errors: [
{
filename: '/?cid=0-0&spec=/C:/Users/User/Projects/ComponentTest/src/Component.test.ts',
message: 'Unable to parse HTML; parse5 error code eof-in-script-html-comment-like-text\n' +
' at C:/Users/User/Projects/ComponentTest/?cid=0-
0&spec=/C:/Users/User/Projects/ComponentTest/src/Component.test.ts:172:12\n' +
'170| <mocha-framework
spec="/C:/Users/User/Projects/ComponentTest/src/Component.test.ts" style="display: none">
</mocha-framework>\n' +
'172| </html>\n' +
' | ^'
}
],
hasViteError: false
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues