Files
stack/playwright.config.ts
zeekay aa4f501120 fix: Complete E2E test suite with 7/7 tests passing
- Fix Anvil Docker configuration to listen on 0.0.0.0 instead of 127.0.0.1
- Update playwright config to use port 5173 and disable webServer
- Rewrite test suite with proper health checks for all services
- Fix IPFS health check to use docker exec
- All infrastructure services verified working (Anvil, PostgreSQL, Redis, IPFS)
- Contract deployment verified on local Anvil
- Frontend app loading and integration tests passing
2025-08-21 12:08:42 -05:00

58 lines
1.3 KiB
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './',
testMatch: ['test.spec.js', 'dao/e2e/**/*.spec.ts'],
timeout: 30 * 1000,
expect: {
timeout: 10000
},
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: [
['html', { outputFolder: 'playwright-report' }],
['json', { outputFile: 'test-results/results.json' }],
['list']
],
use: {
baseURL: process.env.BASE_URL || 'http://localhost:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
{
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] },
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] },
},
],
// webServer is disabled since we manage services manually
// webServer: process.env.CI ? undefined : {
// command: 'make up',
// url: 'http://localhost:3000',
// timeout: 120 * 1000,
// reuseExistingServer: !process.env.CI,
// },
outputDir: 'test-results/',
});