playwright/package.json

108 lines
4.8 KiB
JSON
Raw Normal View History

2019-11-19 05:18:28 +03:00
{
"name": "playwright-internal",
"private": true,
2024-02-27 03:45:25 +03:00
"version": "1.43.0-next",
2020-01-07 22:51:22 +03:00
"description": "A high-level API to automate web browsers",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/playwright.git"
},
"homepage": "https://playwright.dev",
2019-11-19 05:18:28 +03:00
"engines": {
"node": ">=16"
2019-11-19 05:18:28 +03:00
},
2021-10-11 17:52:17 +03:00
"author": {
"name": "Microsoft Corporation"
},
"license": "Apache-2.0",
2019-11-19 05:18:28 +03:00
"scripts": {
"ctest": "playwright test --config=tests/library/playwright.config.ts --project=chromium-*",
"ftest": "playwright test --config=tests/library/playwright.config.ts --project=firefox-*",
"wtest": "playwright test --config=tests/library/playwright.config.ts --project=webkit-*",
"atest": "playwright test --config=tests/android/playwright.config.ts",
"etest": "playwright test --config=tests/electron/playwright.config.ts",
"webview2test": "playwright test --config=tests/webview2/playwright.config.ts",
"itest": "playwright test --config=tests/installation/playwright.config.ts",
"stest": "playwright test --config=tests/stress/playwright.config.ts",
"test-html-reporter": "playwright test --config=packages/html-reporter",
"test-web": "playwright test --config=packages/web",
"ttest": "node ./tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli test --config=tests/playwright-test/playwright.config.ts",
"ct": "playwright test tests/components/test-all.spec.js --reporter=list",
"test": "playwright test --config=tests/library/playwright.config.ts",
2024-02-26 20:39:21 +03:00
"eslint": "eslint --cache --report-unused-disable-directives --ext ts,tsx,js,jsx,mjs .",
2019-11-19 05:18:28 +03:00
"tsc": "tsc -p .",
2021-10-11 17:52:17 +03:00
"build-installer": "babel -s --extensions \".ts\" --out-dir packages/playwright-core/lib/utils/ packages/playwright-core/src/utils",
"doc": "node utils/doclint/cli.js",
"lint": "npm run eslint && npm run tsc && npm run doc && npm run check-deps && node utils/generate_channels.js && node utils/generate_types/ && npm run lint-tests && npm run test-types && npm run lint-packages",
"lint-packages": "node utils/workspace.js --ensure-consistent",
2021-11-12 00:27:50 +03:00
"lint-tests": "node utils/lint_tests.js",
"flint": "concurrently \"npm run eslint\" \"npm run tsc\" \"npm run doc\" \"npm run check-deps\" \"node utils/generate_channels.js\" \"node utils/generate_types/\" \"npm run lint-tests\" \"npm run test-types\" \"npm run lint-packages\"",
"clean": "node utils/build/clean.js",
"build": "node utils/build/build.js",
"watch": "node utils/build/build.js --watch --lint",
"test-types": "node utils/generate_types/ && tsc -p utils/generate_types/test/tsconfig.json && tsc -p ./tests/",
"roll": "node utils/roll_browser.js",
"check-deps": "node utils/check_deps.js",
"build-android-driver": "./utils/build_android_driver.sh",
"innerloop": "playwright run-server --reuse-browser"
2019-11-19 05:18:28 +03:00
},
2021-10-11 17:52:17 +03:00
"workspaces": [
"packages/*"
],
2019-11-19 05:18:28 +03:00
"devDependencies": {
"@actions/core": "^1.10.0",
"@babel/cli": "^7.23.4",
"@babel/code-frame": "^7.23.5",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
"@babel/plugin-transform-logical-assignment-operators": "^7.23.4",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
"@babel/plugin-transform-optional-chaining": "^7.23.4",
"@babel/plugin-transform-typescript": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"@types/babel__core": "^7.20.2",
"@types/codemirror": "^5.60.7",
2022-02-01 19:12:11 +03:00
"@types/formidable": "^2.0.4",
"@types/node": "^18.15.3",
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
2022-05-23 22:59:33 +03:00
"@types/resize-observer-browser": "^0.1.7",
"@types/ws": "^8.5.3",
2022-02-01 19:12:11 +03:00
"@types/xml2js": "^0.4.9",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@typescript-eslint/utils": "^6.13.2",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"@vitejs/plugin-react": "^4.2.1",
"@zip.js/zip.js": "^2.7.29",
2022-02-01 19:12:11 +03:00
"chokidar": "^3.5.3",
2022-04-19 03:50:25 +03:00
"colors": "^1.4.0",
2022-02-01 19:12:11 +03:00
"commonmark": "^0.30.0",
2021-09-03 21:30:34 +03:00
"concurrently": "^6.2.1",
2022-02-01 19:12:11 +03:00
"cross-env": "^7.0.3",
"dotenv": "^16.0.0",
2022-09-01 04:30:26 +03:00
"electron": "19.0.11",
"enquirer": "^2.3.6",
"esbuild": "^0.18.11",
"eslint": "^8.55.0",
"eslint-plugin-internal-playwright": "file:utils/eslint-plugin-internal-playwright",
"eslint-plugin-notice": "^0.9.10",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.3.0",
"formidable": "^2.1.1",
"license-checker": "^25.0.1",
"mime": "^3.0.0",
2022-02-01 19:12:11 +03:00
"node-stream-zip": "^1.15.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"socksv5": "0.0.6",
feat: implement a new image comparison function (#19166) This patch implements a new image comparison function, codenamed "ssim-cie94". The goal of the new comparison function is to cancel out browser non-determenistic rendering. To use the new comparison function: ```ts await expect(page).toHaveScreenshot({ comparator: 'ssim-cie94', }); ``` As of Nov 30, 2022, we identified the following sources of non-determenistic rendering for Chromium: - Anti-aliasing for certain shapes might be different due to the way skia rasterizes certain shapes. - Color blending might be different on `x86` and `aarch64` architectures. The new function employs a few heuristics to fight these differences. Consider two non-equal image pixels `(r1, g1, b1)` and `(r2, g2, b2)`: 1. If the [CIE94] metric is less then 1.0, then we consider these pixels **EQUAL**. (The value `1.0` is the [just-noticeable difference] for [CIE94].). Otherwise, proceed to next step. 1. If all the 8 neighbors of the first pixel match its color, or if the 8 neighbors of the second pixel match its color, then these pixels are **DIFFERENT**. (In case of anti-aliasing, some of the direct neighbors have to be blended up or down.) Otherwise, proceed to next step. 1. If SSIM in some locality around the different pixels is more than 0.99, then consider this pixels to be **EQUAL**. Otherwise, mark them as **DIFFERENT**. (Local SSIM for anti-aliased pixels turns out to be very close to 1.0). [CIE94]: https://en.wikipedia.org/wiki/Color_difference#CIE94 [just-noticeable difference]: https://en.wikipedia.org/wiki/Just-noticeable_difference
2022-12-03 02:22:05 +03:00
"ssim.js": "^3.5.0",
"typescript": "^5.3.2",
"vite": "^5.0.12",
2022-04-19 06:20:49 +03:00
"ws": "^8.5.0",
"xml2js": "^0.5.0",
"yaml": "^2.2.2"
2019-11-19 05:18:28 +03:00
}
2021-10-08 01:49:30 +03:00
}