From 185e914db289cbae99febcb8a32ca371d172df2d Mon Sep 17 00:00:00 2001 From: Kamil Krzywda Date: Wed, 16 Sep 2026 20:06:42 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20v0.2.2=20=E2=80=94=20e2e=20config=20su?= =?UTF-8?q?pports=20remote=20runner=20(E2E=5FREMOTE/E2E=5FBASE=5FURL)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ package.json | 2 +- playwright.config.ts | 18 +++++++++++------- 3 files changed, 15 insertions(+), 8 deletions(-) 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, + }, });