Adds TestConfig.attachments public API. (We opted to not implement an analog to the async TestInfo.attach(…) API.)
Adds TestConfig.attachments to common reporters.
Dogfoods some git and CI-info inference to generate useful atttachments
Updates HTML Reporter to include a side bar to present a pre-defined set of attachments (a.k.a git/commit context sidebar)
Here's what it looks like:
See tests/playwright-test/reporter-html.spec.ts for an example of usage (for dogfood-ing only). In the future, if this becomes user-facing, there the Global Setup bit would likely become unnecessary (as would interaction with attachments array); there would likely just be a nice top-level config and/or CLI flag to enable collecting of info.