cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.07k stars 1.09k forks source link

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

Open vitalets opened 2 months ago

vitalets commented 2 months ago

🤔 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