Skip to content
Snippets Groups Projects
playwright.config.js 685 B
Newer Older
  • Learn to ignore specific revisions
  • import { expect, defineConfig } from '@playwright/test';
    
    // Disable screenshot assertions in regular e2e tests;
    // only enable them when doing VRT tests
    if (!process.env.VRT) {
      expect.extend({
        toHaveScreenshot() {
          return {
            message: () => 'passed',
            pass: true,
          };
        },
      });
    }
    
    // eslint-disable-next-line import/no-unused-modules
    export default defineConfig({
    
      timeout: 20000, // 20 seconds
      retries: 1,
    
        screenshot: 'on',
        browserName: 'chromium',
    
        baseURL: process.env.E2E_START_URL ?? 'http://localhost:3001',
        trace: 'on-first-retry',