playwright.config.ts 372 B

1234567891011121314151617
  1. import { defineConfig } from '@playwright/test';
  2. export default defineConfig({
  3. testDir: './tests',
  4. timeout: 30 * 1000,
  5. retries: 1,
  6. use: {
  7. baseURL: 'http://localhost:3000',
  8. headless: true,
  9. },
  10. webServer: {
  11. command: 'rush dev:demo-fixed-layout',
  12. port: 3000,
  13. timeout: 120 * 1000,
  14. reuseExistingServer: !process.env.GITHUB_ACTIONS,
  15. },
  16. });