Skip to content

HTML formatter shows extra space for hooksΒ #360

Closed
@vitalets

Description

@vitalets

πŸ‘“ What did you see?

When running tests with many Before hooks, these hooks are outputted as empty <li> elements in the HTML formatter. It leads to extra space:

The same is for other hook types.

βœ… What did you expect to see?

No extra space for hooks in HTML formatter.

πŸ“¦ Which tool/library version are you using?

node -v
v20.14.0

npx cucumber-js -v
11.1.0

πŸ”¬ How could we reproduce it?

  1. Add many Before hooks to your cucumber-js project, e.g.:
Before(async function () {});
Before(async function () {});
Before(async function () {});
Before(async function () {});
Before(async function () {});
Before(async function () {});
Before(async function () {});
  1. Run cucumber with html formatter

πŸ“š Any additional context?

No response

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