fix tests

This commit is contained in:
Ildar Kamalov
2025-01-29 18:28:34 +03:00
parent 885e24496c
commit 77d05e550e
5 changed files with 31 additions and 13 deletions

View File

@@ -1,10 +1,13 @@
import { defineConfig, devices } from '@playwright/test';
import path from 'path';
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests/e2e',
globalSetup: path.resolve('./tests/e2e/globalSetup.ts'),
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -22,6 +25,9 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
launchOptions: {
headless: true,
},
},
/* Configure projects for major browsers */
@@ -63,7 +69,7 @@ export default defineConfig({
],
webServer: {
command: 'sudo ./AdGuardHome --local-frontend -v',
command: 'rm -f AdGuardHome.yaml && sudo ./AdGuardHome --local-frontend -v',
url: 'http://127.0.0.1:3000',
cwd: '..',
reuseExistingServer: !process.env.CI,