Skip to content

Feature: allow to provide titles for link list in html formatterΒ #2433

@vitalets

Description

@vitalets

πŸ€” What's the problem you're trying to solve?

Currently HTML formatter can show link list as raw URIs. With long URIs it can lead to cluttered ui:
image

✨ What's your proposed solution?

Allow this.link() to accept list of objects { title: string, url: string }:

this.link(
    { title: 'Cucumber-js', url: 'https://github.com/cucumber/cucumber-js?param=value' },
    { title: 'Cucumber-jvm', url: 'https://github.com/cucumber/cucumber-jvm?param=value' },
);

Then output in reporter would be as follows:

⛏ Have you considered any alternatives or workarounds?

No response

πŸ“š Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    βœ… acceptedThe core team has agreed that it is a good idea to fix this⚑ enhancementRequest for new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions