Improved import security, added browser tests
This commit is contained in:
22
playwright.config.js
Normal file
22
playwright.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './tests/e2e',
|
||||
fullyParallel: false,
|
||||
workers: 1,
|
||||
timeout: 30_000,
|
||||
reporter: 'list',
|
||||
use: {
|
||||
baseURL: 'http://127.0.0.1:4183',
|
||||
timezoneId: 'Europe/Paris',
|
||||
viewport: { width: 320, height: 640 },
|
||||
// These tests use fresh contexts and synthetic fixtures; no user profile.
|
||||
trace: 'off', screenshot: 'off', video: 'off',
|
||||
launchOptions: process.env.PARDIS_CHROME_PATH ? { executablePath: process.env.PARDIS_CHROME_PATH } : {},
|
||||
},
|
||||
webServer: {
|
||||
command: 'npm run preview -- --host 127.0.0.1 --port 4183 --strictPort',
|
||||
url: 'http://127.0.0.1:4183',
|
||||
reuseExistingServer: false,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user