Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: uuid must be a valid HTML5 id #344

Open
vitalets opened this issue Mar 2, 2024 · 0 comments
Open

Error: uuid must be a valid HTML5 id #344

vitalets opened this issue Mar 2, 2024 · 0 comments

Comments

@vitalets
Copy link

vitalets commented Mar 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant