-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: allow to provide titles for link list in html formatter #2433
Comments
I'm definitely supportive of having titles on links for the reasons you say, and that interface looks good to me. The question is more how we map it to the I think the best option is probably to emit one What do you think? |
Yes, I agree - a separate attachment message for each link. In that case, if I still call it with pure urls, how many attachments will be added? this.link(
'https://github.com/cucumber/cucumber-js?param=value',
'https://github.com/cucumber/cucumber-jvm?param=value',
); I think, for the consistency and less maintenance efforts, it's better to behave in the same way - output several attachments even for pure urls. One internal concern here is that |
I tend to agree re making it one URL per attachment.
The reason for |
I didn't know that. Then I'd better vote for sticking to standard. List of a single element is still a list. |
π€ 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:
β¨ What's your proposed solution?
Allow
this.link()
to accept list of objects{ title: string, url: string }
:Then output in reporter would be as follows:
β Have you considered any alternatives or workarounds?
No response
π Any additional context?
No response
The text was updated successfully, but these errors were encountered: