playwright/tests
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
..
android
assets feat(aria): introduce role utils (#12916) 2022-03-21 17:26:45 -07:00
chromium
config feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
electron
emulation-focus.spec.ts-snapshots
firefox
inspector
page chore: make count() work with _vue selectors (#12899) 2022-03-18 21:22:33 -07:00
playwright-test feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
screenshot.spec.ts-snapshots
trace-viewer fix(tracing): preserve control values without modifying DOM (#12939) 2022-03-21 18:51:48 -07:00
beforeunload.spec.ts
browser.spec.ts
browsercontext-add-cookies.spec.ts
browsercontext-add-init-script.spec.ts
browsercontext-base-url.spec.ts
browsercontext-basic.spec.ts
browsercontext-clearcookies.spec.ts
browsercontext-cookies.spec.ts
browsercontext-credentials.spec.ts
browsercontext-csp.spec.ts
browsercontext-device.spec.ts
browsercontext-dsf.spec.ts
browsercontext-expose-function.spec.ts
browsercontext-fetch.spec.ts
browsercontext-locale.spec.ts
browsercontext-network-event.spec.ts
browsercontext-page-event.spec.ts
browsercontext-pages.spec.ts
browsercontext-proxy.spec.ts
browsercontext-route.spec.ts
browsercontext-set-extra-http-headers.spec.ts
browsercontext-storage-state.spec.ts chore: do not initialize full sessions for pages used in session restore (#12886) 2022-03-18 18:17:37 -07:00
browsercontext-strict.spec.ts
browsercontext-timezone-id.spec.ts
browsercontext-user-agent.spec.ts
browsercontext-viewport-mobile.spec.ts
browsercontext-viewport.spec.ts
browsertype-basic.spec.ts
browsertype-connect.spec.ts feat(chromium): large file uploads (#12860) 2022-03-18 09:00:52 -07:00
browsertype-launch-selenium.spec.ts
browsertype-launch-server.spec.ts
browsertype-launch.spec.ts
capabilities.spec.ts
channels.spec.ts
component-parser.spec.ts
css-parser.spec.ts
defaultbrowsercontext-1.spec.ts
defaultbrowsercontext-2.spec.ts
download.spec.ts
downloads-path.spec.ts
emulation-focus.spec.ts
favicon.spec.ts
geolocation.spec.ts
global-fetch-cookie.spec.ts
global-fetch.spec.ts
har.spec.ts
headful.spec.ts
hit-target.spec.ts fix(click): workaround elementsFromPoint issue in Chromium (#12888) 2022-03-18 18:20:48 -07:00
ignorehttpserrors.spec.ts
index.d.ts
launcher.spec.ts chore: improve handling with missing xserver (#12724) 2022-03-18 22:39:11 +01:00
logger.spec.ts
modernizr.spec.ts
pdf.spec.ts
permissions.spec.ts
popup.spec.ts
port-forwarding-server.spec.ts
proxy.spec.ts
resource-timing.spec.ts
role-utils.spec.ts feat(aria): introduce role utils (#12916) 2022-03-21 17:26:45 -07:00
screenshot.spec.ts
selector-generator.spec.ts fix(codegen): do not consider empty attributes for selector generation (#12880) 2022-03-22 13:56:33 -07:00
selectors-register.spec.ts
signals.spec.ts
slowmo.spec.ts
snapshotter.spec.ts
tap.spec.ts
tracing.spec.ts
tsconfig.json
video.spec.ts
web-socket.spec.ts