cucumber-js icon indicating copy to clipboard operation
cucumber-js copied to clipboard

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

Open vitalets opened this issue 1 year ago • 5 comments

🤔 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

vitalets avatar Sep 30 '24 08:09 vitalets