20c19d15f4
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.
42 lines
1.1 KiB
TypeScript
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,
|
|
},
|
|
});
|