playwright.config.ts 471 B

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { defineConfig } from '@playwright/test';
  6. export default defineConfig({
  7. testDir: './tests',
  8. timeout: 60 * 1000,
  9. retries: 1,
  10. use: {
  11. baseURL: 'http://localhost:3000',
  12. headless: true,
  13. },
  14. webServer: {
  15. command: 'rush dev:demo-free-layout',
  16. port: 3000,
  17. timeout: 120 * 1000,
  18. reuseExistingServer: !process.env.GITHUB_ACTIONS,
  19. },
  20. });