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.
68 lines
2.1 KiB
JSON
68 lines
2.1 KiB
JSON
{
|
|
"name": "@playwright/test",
|
|
"version": "1.21.0-next",
|
|
"description": "A high-level API to automate web browsers",
|
|
"repository": "github:Microsoft/playwright",
|
|
"homepage": "https://playwright.dev",
|
|
"engines": {
|
|
"node": ">=12"
|
|
},
|
|
"main": "index.js",
|
|
"exports": {
|
|
".": {
|
|
"import": "./index.mjs",
|
|
"require": "./index.js"
|
|
},
|
|
"./cli": "./cli.js",
|
|
"./package.json": "./package.json",
|
|
"./lib/cli": "./lib/cli.js",
|
|
"./lib/experimentalLoader": "./lib/experimentalLoader.js",
|
|
"./lib/mount": "./lib/mount.js",
|
|
"./lib/ci": "./lib/ci.js",
|
|
"./reporter": "./reporter.js"
|
|
},
|
|
"bin": {
|
|
"playwright": "./cli.js"
|
|
},
|
|
"author": {
|
|
"name": "Microsoft Corporation"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"@babel/code-frame": "7.16.7",
|
|
"@babel/core": "7.16.12",
|
|
"@babel/helper-plugin-utils": "7.16.7",
|
|
"@babel/plugin-proposal-class-properties": "7.16.7",
|
|
"@babel/plugin-proposal-dynamic-import": "7.16.7",
|
|
"@babel/plugin-proposal-export-namespace-from": "7.16.7",
|
|
"@babel/plugin-proposal-logical-assignment-operators": "7.16.7",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
|
|
"@babel/plugin-proposal-numeric-separator": "7.16.7",
|
|
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
|
"@babel/plugin-proposal-private-methods": "7.16.11",
|
|
"@babel/plugin-proposal-private-property-in-object": "7.16.7",
|
|
"@babel/plugin-syntax-async-generators": "7.8.4",
|
|
"@babel/plugin-syntax-json-strings": "7.8.3",
|
|
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
|
|
"@babel/plugin-syntax-optional-catch-binding": "7.8.3",
|
|
"@babel/plugin-transform-modules-commonjs": "7.16.8",
|
|
"@babel/preset-typescript": "7.16.7",
|
|
"colors": "1.4.0",
|
|
"commander": "8.3.0",
|
|
"debug": "4.3.3",
|
|
"expect": "27.2.5",
|
|
"jest-matcher-utils": "27.2.5",
|
|
"json5": "2.2.1",
|
|
"mime": "3.0.0",
|
|
"minimatch": "3.0.4",
|
|
"ms": "2.1.3",
|
|
"open": "8.4.0",
|
|
"pirates": "4.0.4",
|
|
"playwright-core": "1.21.0-next",
|
|
"rimraf": "3.0.2",
|
|
"source-map-support": "0.4.18",
|
|
"stack-utils": "2.0.5",
|
|
"yazl": "2.5.1"
|
|
}
|
|
}
|