胖子天骄的MES系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
492 B

  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;