diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f21565..249e50d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v0.2.2 — 2026-09-16 20:05 +- `playwright.config.ts`: e2e suite can now run on a different machine than the app — with `E2E_REMOTE=1` the local `webServer` block is skipped entirely and `baseURL` defaults to `http://flight.dev.kkhost.pl`; `E2E_BASE_URL` overrides `baseURL` in both modes; with no env vars set behavior is unchanged (local `webServer` auto-starts `npm run dev`) + ## v0.2.1 — 2026-09-16 19:49 - Clamp map zoom to the useful gameplay range: `minZoom: 3` / `maxZoom: 14` on the MapLibre options in `components/Map.tsx` (exported as `MIN_ZOOM`/`MAX_ZOOM`) — wheel travel from the Europe overview is now ~10 levels instead of ~16, and street-level zoom past the z12 pitch transition no longer exists - e2e: new test that wheels well past both limits via `page.mouse.wheel` (basemap tile fetches blocked for speed/determinism; clamping is pure camera behavior) and asserts via `expect.poll` on the map instance that `getZoom()` settles at 14 / 3, i.e. clamped within [3, 14] diff --git a/package.json b/package.json index b796e8c..aa237a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flight-ops", - "version": "0.2.1", + "version": "0.2.2", "private": true, "scripts": { "dev": "next dev -p 3000", diff --git a/playwright.config.ts b/playwright.config.ts index 5329087..d0db9c3 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,17 +1,21 @@ import { defineConfig } from '@playwright/test'; +const remote = !!process.env.E2E_REMOTE; + export default defineConfig({ testDir: './e2e', timeout: 30_000, retries: 1, use: { - baseURL: 'http://localhost:3000', + baseURL: process.env.E2E_BASE_URL ?? (remote ? 'http://flight.dev.kkhost.pl' : 'http://localhost:3000'), trace: 'on-first-retry', }, - webServer: { - command: 'npm run dev', - url: 'http://localhost:3000/api/airports', - reuseExistingServer: true, - timeout: 120_000, - }, + webServer: remote + ? undefined + : { + command: 'npm run dev', + url: 'http://localhost:3000/api/airports', + reuseExistingServer: true, + timeout: 120_000, + }, });