fix(html-reporter): duplicate attachment name (#16929)
fix(html-reporter): duplicate attachment name (#16929)

Fixes #16456.

The extra span/name was coming from
https://github.com/microsoft/playwright/blob/077b8a928960493a4cf275bc4fc4d4176b2a6098/packages/html-reporter/src/links.tsx#L72
(in conjunction with the line above it).

These two lines assume `path` and `body` are mutally exclusive.

Regression likely introduced by the PR that added the now removed line #10778.
microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright