playwright/package.json
2025-03-07 13:50:01 +08:00

42 lines
1.5 KiB
JSON

{
"name": "playwright-automation",
"version": "1.0.0",
"description": "基于Playwright的自动化测试工具",
"main": "index.js",
"scripts": {
"test": "playwright test",
"test:ui": "playwright test --ui",
"report": "playwright show-report",
"codegen": "playwright codegen",
"debug": "playwright test --debug",
"test:menu": "cross-env NODE_ENV=dev playwright test tests/e2e/menu.spec.js",
"test:menu:ui": "cross-env NODE_ENV=dev playwright test tests/e2e/menu.spec.js --ui",
"test:menu:debug": "cross-env NODE_ENV=dev playwright test tests/e2e/menu.spec.js --debug",
"test:menu:clean": "cross-env NODE_ENV=dev rimraf test-data/* && npm run test:menu",
"test:menu:collect": "cross-env NODE_ENV=dev playwright test tests/e2e/menu.spec.js --grep \"收集菜单数据\"",
"test:menu:batch": "cross-env NODE_ENV=dev playwright test tests/e2e/menu.spec.js --grep \"批量测试菜单\""
},
"keywords": [
"playwright",
"automation",
"testing",
"e2e"
],
"author": "",
"license": "MIT",
"dependencies": {
"@playwright/test": "^1.40.0",
"chalk": "^4.1.2",
"commander": "^11.1.0",
"dotenv": "^16.3.1",
"faker": "^5.5.3"
},
"devDependencies": {
"allure-playwright": "^2.9.2",
"cross-env": "^7.0.3",
"dotenv-flow": "^4.1.0",
"eslint": "^8.54.0",
"eslint-plugin-playwright": "^0.18.0"
}
}