playwright.config.ts 534 B

1234567891011121314151617181920212223
  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. actionTimeout: 10 * 1000, // timeout for waitFor/click...
  14. },
  15. webServer: {
  16. command: 'rush dev:demo-fixed-layout',
  17. port: 3000,
  18. timeout: 120 * 1000,
  19. reuseExistingServer: !process.env.GITHUB_ACTIONS,
  20. },
  21. });