HEX
Server: Apache
System: Linux p3plzcpnl476737.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: p8pyefaexf70 (9161224)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/p8pyefaexf70/public_html/wp-content/plugins/facebook-for-woocommerce/playwright.config.js
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  testDir: './tests/e2e',
  fullyParallel: true,
  forbidOnly: !!process.env.CI,
  retries: process.env.CI ? 2 : 0,
  workers: process.env.CI ? 1 : 1,
  reporter: 'html',
  // Global test timeout - increased to 5 minutes for complex WordPress operations
  timeout: 1000000,
  // Global setup to authenticate once
  globalSetup: './tests/e2e/global-setup.js',
  use: {
    baseURL: process.env.WORDPRESS_URL,
    trace: 'on-first-retry',
    screenshot: 'only-on-failure',
    video: 'retain-on-failure',
    // Ignore SSL errors for local development
    ignoreHTTPSErrors: true,
    // Global timeouts for all actions - increased to 3 minutes
    actionTimeout: 180000,
    navigationTimeout: 180000,
  },

  projects: [
    {
      name: 'chromium-wp-admin',
      use: {
        ...devices['Desktop Chrome'],
        // Increased timeouts for WordPress admin operations
        actionTimeout: 180000,
        navigationTimeout: 180000,
        storageState: './tests/e2e/.auth/admin.json'
      },
    },
    {
      name: 'chromium-wp-customer',
      use: {
        ...devices['Desktop Chrome'],
        // Increased timeouts for WordPress admin operations
        actionTimeout: 180000,
        navigationTimeout: 180000,
        storageState: './tests/e2e/.auth/customer.json'
      },
    }
  ],

  // Only look for E2E test files, ignore Jest tests
  testMatch: '**/tests/e2e/**/*.spec.js',

  // Only start webServer in CI, not when using external WordPress URL
  webServer: (process.env.CI && !process.env.WORDPRESS_URL) ? {
    command: 'php -S localhost:8080 -t /tmp/wordpress-e2e',
    port: 8080,
    reuseExistingServer: false,
  } : undefined,
});