Files
n8n-enterprise-unlocked/packages/testing/playwright/package.json
2025-08-01 10:27:48 +01:00

32 lines
1.6 KiB
JSON

{
"name": "n8n-playwright",
"private": true,
"scripts": {
"test:all": "playwright test",
"start:isolated": "cd ..; N8N_PORT=5679 N8N_USER_FOLDER=/tmp/n8n-test-$(date +%s) E2E_TESTS=true pnpm start",
"test:local": "RESET_E2E_DB=true N8N_BASE_URL=http://localhost:5679 start-server-and-test 'pnpm start:isolated' http://localhost:5679/favicon.ico 'sleep 1 && pnpm test:standard --workers 4'",
"test:standard": "playwright test --project=mode:standard*",
"test:postgres": "playwright test --project=mode:postgres*",
"test:queue": "playwright test --project=mode:queue*",
"test:multi-main": "playwright test --project=mode:multi-main*",
"test:clean": "docker rm -f $(docker ps -aq --filter 'name=n8n-*') 2>/dev/null || true && docker network prune -f",
"test:workflows:setup": "tsx test-workflows/setup-workflow-tests.ts",
"test:workflows": "playwright test --project=mode:workflows",
"test:workflows:schema": "SCHEMA=true playwright test --project=mode:workflows",
"test:workflows:update": "playwright test --project=mode:workflows --update-snapshots",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"install-browsers:ci": "PLAYWRIGHT_BROWSERS_PATH=./ms-playwright-cache playwright install chromium --with-deps --no-shell",
"install-browsers:local": "playwright install chromium --with-deps --no-shell"
},
"devDependencies": {
"@currents/playwright": "1.14.1",
"@playwright/test": "1.53.0",
"@types/lodash": "catalog:",
"eslint-plugin-playwright": "2.2.0",
"generate-schema": "2.6.0",
"json-diff": "1.0.6",
"n8n-containers": "workspace:*"
}
}