playwright/packages/html-reporter/src
Ross Wollman 541fb39a51
feat(html-reporter): add report context header (#12734)
Resolves #11318.

* 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:

<img width="1738" alt="Screen Shot 2022-03-21 at 3 23 28 PM" src="https://user-images.githubusercontent.com/11915034/159373291-8b937d30-fba3-472a-853a-766018f6b3e2.png">

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.
2022-03-22 16:28:04 -07:00
..
chip.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
chip.spec.tsx chore: prepare to publish component packages (#12697) 2022-03-12 13:51:27 -08:00
chip.tsx chore: parse tsx tests (#10917) 2021-12-14 19:25:07 -08:00
colors.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
common.css test: add component tests for html report (#10900) 2021-12-13 18:30:48 -08:00
filter.ts chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
headerView.css test: add component tests for html report (#10900) 2021-12-13 18:30:48 -08:00
headerView.spec.tsx chore: prepare to publish component packages (#12697) 2022-03-12 13:51:27 -08:00
headerView.tsx test: add component tests for html report (#10900) 2021-12-13 18:30:48 -08:00
icons.tsx feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
images.ts chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
index.html chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
index.tsx feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
links.css feat(html): render inline attachments as monospace (#11214) 2022-01-06 09:29:55 -08:00
links.tsx fix(html-report): open all test traces in one viewer (#12142) 2022-02-16 09:09:42 -08:00
loadedReport.ts feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
reportView.css feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
reportView.tsx feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
statusIcon.tsx chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
tabbedPane.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
tabbedPane.tsx chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
testCaseView.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
testCaseView.spec.tsx chore: prepare to publish component packages (#12697) 2022-03-12 13:51:27 -08:00
testCaseView.tsx chore: parse tsx tests (#10917) 2021-12-14 19:25:07 -08:00
testFilesView.tsx chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
testFileView.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
testFileView.tsx chore: cleanup hooks notion from raw/html reporters (#12610) 2022-03-08 19:08:31 -08:00
testResultView.css feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00
testResultView.tsx feat: support multiple screenshots in HTML report (#12577) 2022-03-11 08:46:13 -08:00
theme.css test: add component tests for html report (#10900) 2021-12-13 18:30:48 -08:00
treeItem.css chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
treeItem.tsx chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00
uiUtils.ts chore: move html report to package (#10898) 2021-12-13 16:38:26 -08:00