react-components icon indicating copy to clipboard operation
react-components copied to clipboard

Error: uuid must be a valid HTML5 id

Open vitalets opened this issue 11 months ago • 0 comments

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:

  1. Install @cucumber/cucumber version 10.3.1
  2. Create feature file with whitespaces in path, e.g. 'features/my feature.feature'
  3. Implement steps
  4. Run cucumber with html formatter npx cucumber-js -f html:report.html
  5. Open generated report:

image

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

vitalets avatar Mar 02 '24 09:03 vitalets