Skip to content

Playwright

Create playwright.config.ts in your project root:

import { defineConfig } from '@playwright/test';
import baseConfig from '@presencelearning/frontend-config/playwright';
export default defineConfig({
...baseConfig,
use: {
...baseConfig.use,
baseURL: 'http://localhost:4200', // Your dev server URL
},
webServer: {
command: 'npm run start',
port: 4200,
reuseExistingServer: !process.env.CI,
},
});
  • CI/CD optimized (Docker/Linux detection)
  • Visual regression testing support
  • Multi-browser testing (Chromium by default)
  • Automatic retries on CI