react-components
react-components copied to clipboard
Error: uuid must be a valid HTML5 id
Whitespaces in feature uri cause errors in browser console in Cucumber HTML report.
👓 What did you see?
There are errors in browser console:
uuid must be a valid HTML5 id but was given "features/my feature.feature", ASCII whitespaces are forbidden
pc @ report.html:47
uuid must be a valid HTML5 id but was given "accordion__heading-features/my feature.feature", ASCII whitespaces are forbidden
✅ What did you expect to see?
No errors in browser console.
📦 Which tool/library version are you using?
npx cucumber-js --version
10.3.1
🔬 How could we reproduce it?
Steps to reproduce the behavior:
- Install @cucumber/cucumber version 10.3.1
- Create feature file with whitespaces in path, e.g. 'features/my feature.feature'
- Implement steps
- Run cucumber with html formatter
npx cucumber-js -f html:report.html
- Open generated report:
📚 Any additional context?
In the changelog I've found that this issue was fixed in v16.0.2, but in the codebase I see that doc.uri is still used as a uuid.
This text was originally generated from a template, then edited by hand. You can modify the template here.