platform-codebase/features/webmap/e2e/playwright.config.ts
Lilith 844c8a7a89 Fix staging verification to use direct LAN connection
- Remove SOCKS5 proxy dependency (port 80 blocked by Forgejo)
- Connect directly to webmap-router on 10.0.0.11:4002
- Use Host header for app routing
- Update check-staging.sh for direct connection

Staging status:
- webmap-router: running on black:4002
- landing: deployed, working
- seo (atlilith): deployed, working
- marketplace: not deployed (needs build/deploy)
- seo (trustedmeet): routed but app missing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 00:52:35 -08:00

44 lines
1.1 KiB
TypeScript

import { defineConfig, devices } from '@playwright/test';
/**
* Playwright config for webmap staging verification tests
*
* Run all staging tests:
* npx playwright test
*
* Run specific site:
* STAGING_URL=http://next.www.atlilith.com npx playwright test staging.spec.ts
* TRUSTEDMEET_STAGING_URL=http://next.www.trustedmeet.com npx playwright test staging-trustedmeet.spec.ts
*/
export default defineConfig({
testDir: '.',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI ? 'github' : 'html',
use: {
trace: 'on-first-retry',
screenshot: 'only-on-failure',
// Extra HTTP headers for webmap routing (Host header)
extraHTTPHeaders: process.env.STAGING_HOST
? { Host: process.env.STAGING_HOST }
: undefined,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
// Timeout for each test
timeout: 30000,
// Expect timeout
expect: {
timeout: 10000,
},
});