Skip to content

Error: uuid must be a valid HTML5 id #344

Closed
@vitalets

Description

@vitalets

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions