Files
flights_web/playwright-angular.config.ts
T
gnezim 20c19d15f4
CI / ci (push) Failing after 23s
Deploy / build-and-deploy (push) Failing after 5s
Add standalone API proxy via curl (bypasses WAF TLS fingerprinting)
Modern.js SSR intercepts all routes before any Express middleware,
so the API proxy runs as a separate Express server on port 8080.
Modern.js runs on 8081. The proxy uses curl subprocesses which go
through the system HTTPS proxy (GOST) with a proper TLS fingerprint
that the Aeroflot WAF accepts.

Usage: node scripts/dev-server.mjs (replaces pnpm dev for full-stack)

Also: remove stray e2e-angular test directory, fix env default to
same-origin /api.
2026-04-15 23:04:24 +03:00

42 lines
1.1 KiB
TypeScript

import { defineConfig, devices } from '@playwright/test';
/**
* Playwright config for running e2e tests against the Angular app only.
* Angular runs on port 4203 with NODE_OPTIONS=--openssl-legacy-provider.
*/
export default defineConfig({
testDir: './tests/e2e-angular',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: [['html', { outputFolder: 'test-results/angular-e2e-report' }]],
timeout: 45_000,
use: {
trace: 'on-first-retry',
navigationTimeout: 15_000,
},
expect: {
timeout: 15_000,
toHaveScreenshot: {
maxDiffPixelRatio: 0.05,
},
},
projects: [
{
name: 'angular-ru-ru',
use: {
...devices['Desktop Chrome'],
baseURL: 'http://localhost:4203',
locale: 'ru-ru',
},
},
],
webServer: {
command: 'cd ClientApp && NODE_OPTIONS=--openssl-legacy-provider npx ng serve --port 4203',
url: 'http://localhost:4203',
reuseExistingServer: true,
timeout: 120_000,
},
});