playwright.config.ts 492 B

12345678910111213141516171819202122
  1. // playwright.config.ts
  2. import type { PlaywrightTestConfig } from '@playwright/test';
  3. import { devices } from '@playwright/test';
  4. const config: PlaywrightTestConfig = {
  5. forbidOnly: !!process.env.CI,
  6. retries: process.env.CI ? 2 : 0,
  7. use: {
  8. trace: 'on-first-retry',
  9. },
  10. projects: [
  11. {
  12. name: 'chromium',
  13. use: { ...devices['Desktop Chrome'] },
  14. },
  15. {
  16. name: 'firefox',
  17. use: { ...devices['Desktop Firefox'] },
  18. },
  19. ],
  20. };
  21. export default config;