try to add e2e job
This commit is contained in:
2
client/package.json
vendored
2
client/package.json
vendored
@@ -10,7 +10,7 @@
|
||||
"lint": "echo 'Lint temporarily disabled'",
|
||||
"lint-new": "eslint './src/**/*.(ts|tsx)'",
|
||||
"lint:fix": "eslint './src/**/*.(ts|tsx)' --fix",
|
||||
"test": "vitest --run && npx playwright test",
|
||||
"test": "vitest --run",
|
||||
"test:watch": "vitest --watch",
|
||||
"test:e2e": "npx playwright test tests/e2e",
|
||||
"test:e2e:interactive": "npx playwright test --ui",
|
||||
|
||||
4
client/playwright.config.ts
vendored
4
client/playwright.config.ts
vendored
@@ -69,7 +69,9 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
webServer: {
|
||||
command: 'rm -f AdGuardHome.yaml && sudo ./AdGuardHome --local-frontend -v',
|
||||
command: process.env.CI
|
||||
? 'rm -f AdGuardHome.yaml && ./AdGuardHome --local-frontend -v'
|
||||
: 'rm -f AdGuardHome.yaml && sudo ./AdGuardHome --local-frontend -v',
|
||||
url: 'http://127.0.0.1:3000',
|
||||
cwd: '..',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
|
||||
Reference in New Issue
Block a user