集成,总结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.

playwright.config.ts 492 B

4 kuukautta sitten
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;