Open
Description
🚀 Feature Request
Show test annotation types in the html report's testFileView (ie. initial test listing view). The annotation description can then be viewed inside the dedicated test case view.
My suggestion is to include the annotation type as a label, as it happens for test tags. Maybe something like:
- <LabelsClickView labels={test.tags} />
+ <LabelsClickView labels={[
+ ...test.tags,
+ ...test.annotations.map(annotation => annotation.type),
+ ]} />
here:
If the annotation is being added dynamically during the failed run of a flaky test, then the label should still appear. This behavior will be consistent with that of the "image diff" and "trace" icons on flaky tests.
Example
No response
Motivation
Since the annotations can be added dynamically, we can use them for marking tests based on the run behavior. These marks can be very useful to being able to be viewed and/or filtered in the test list.