playwright.config.ts 868 B

1234567891011121314151617181920212223242526272829303132
  1. import { defineConfig } from '@playwright/test';
  2. export default defineConfig({
  3. testDir: './integration-tests/tests',
  4. timeout: 30000,
  5. retries: 1,
  6. use: {
  7. baseURL: process.env.BRIDGE_BASE_ADDRESS ?? 'http://localhost:9000',
  8. viewport: { width: 1920, height: 1080 },
  9. screenshot: 'on',
  10. ignoreHTTPSErrors: true,
  11. video: 'retain-on-failure',
  12. trace: 'on',
  13. testIdAttribute: 'data-test',
  14. },
  15. projects: [
  16. { name: 'setup', testMatch: /auth\.setup\.ts/ },
  17. {
  18. name: 'chromium',
  19. use: {
  20. browserName: 'chromium',
  21. storageState: 'integration-tests/.auth/user.json',
  22. },
  23. dependencies: ['setup'],
  24. },
  25. ],
  26. reporter: [
  27. ['list'],
  28. ['html', { outputFolder: 'integration-tests/results/html', open: 'never' }],
  29. ['junit', { outputFile: 'integration-tests/results/junit-results.xml' }],
  30. ],
  31. });