Files
mostlymatter/e2e-tests/playwright/package.json
Mario Vitale 429c41747c CLD-8395 Integrate playwright into E2E tests (#28492)
* Finalize Playwright E2E scripts integration, add videos
* Add suggestion by Saturn

Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com>

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com>
2024-10-09 13:05:11 +02:00

42 строки
1.6 KiB
JSON

{
"scripts": {
"test": "cross-env PW_SNAPSHOT_ENABLE=true playwright test",
"test:update-snapshots": "cross-env PW_SNAPSHOT_ENABLE=true playwright test --update-snapshots",
"percy": "cross-env PERCY_TOKEN=$PERCY_TOKEN PW_PERCY_ENABLE=true percy exec -- playwright test --project=chrome --project=ipad",
"tsc": "tsc -b",
"lint": "eslint . --ext .js,.ts",
"prettier": "prettier . --check",
"prettier:fix": "prettier --write .",
"check": "npm run tsc && npm run lint && npm run prettier",
"codegen": "cross-env playwright codegen $PW_BASE_URL",
"playwright-ui": "cross-env playwright test --ui",
"test-slomo": "cross-env PW_SNAPSHOT_ENABLE=true PW_SLOWMO=1000 playwright test",
"show-report": "npx playwright show-report",
"postinstall": "script/post_install.sh"
},
"dependencies": {
"@axe-core/playwright": "4.10.0",
"@percy/cli": "1.29.3",
"@percy/playwright": "1.0.6",
"@playwright/test": "1.46.1",
"async-wait-until": "2.0.12",
"axe-core": "4.10.0",
"chalk": "4.1.2",
"dayjs": "1.11.13",
"deepmerge": "4.3.1",
"dotenv": "16.4.5",
"form-data-encoder": "4.0.2",
"formdata-node": "6.0.3",
"uuid": "10.0.0"
},
"devDependencies": {
"@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "7.2.0",
"@typescript-eslint/parser": "7.2.0",
"cross-env": "7.0.3",
"eslint": "8.57.0",
"prettier": "3.2.5",
"typescript": "5.4.5"
}
}