بنقرة واحدة
verify
Build, launch, and drive DeFlock Maps (Vite React SPA) to verify changes end-to-end with Playwright.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build, launch, and drive DeFlock Maps (Vite React SPA) to verify changes end-to-end with Playwright.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | verify |
| description | Build, launch, and drive DeFlock Maps (Vite React SPA) to verify changes end-to-end with Playwright. |
npm run dev # wants port 3000; falls back to 3001+ if taken
Gotcha — CORS: external APIs (data.dontgetflocked.com, sanitas.deflock.org, api.deflock.org) only allow origin http://localhost:3000. If the dev server lands on another port, the app shows "Couldn't Load Map". Fix in Playwright by proxying those hosts through page.route() with route.fetch() + injected access-control-allow-origin: * header (also answer OPTIONS preflights with 204 + permissive headers). Do NOT use --disable-web-security — it breaks the basemap's pmtiles HTTP range requests.
ROUTE header tab. Mobile: tap the Route pill inside [role="dialog"] (the bottom sheet).AddressSearch inputs only geocode on Enter or the search button — typing alone shows no suggestions. Flow: fill → press Enter → click suggestion in the dropdown (button/li filtered by place name). Give geocoding up to 20s (primary geocoder may be CORS-blocked locally; Nominatim/Photon fallback kicks in).hasTouch: true, iPhone UA. The bottom sheet is [role="dialog"]; expand by mouse-dragging the header area upward (header/strip tap is disabled — dragging is the only way to expand). After route calculation the sheet should snap to ~180px (peek, UNIFORM_PEEK_HEIGHT) with the route visible on the map.UNIFORM_PEEK_HEIGHT). Shows the FlockHopper wordmark ad with a "Free · iOS & Android" label, one-liner, and full-width red "Navigate this route in the app" button linking to the platform store URL — there is no summary strip and no "Get FlockHopper" row, and nothing in the peek is tap-to-expand; expand by dragging the sheet header.Working script from 2026-07-11 session: see verify-flockhopper.mjs pattern (Playwright, chromium, CORS proxy routes).
Gotcha — WIP-contaminated tree: if the working tree has unrelated uncommitted WIP, the dev server serves committed+WIP combined; a failure may not be the branch's. Isolate with a git worktree at the commit under test: git worktree add /tmp/check <sha>, symlink the main repo's node_modules into it, npx vite --port 3010 --strictPort, and use the CORS proxy (non-3000 port). Remove the symlink before git worktree remove.
Gotcha — map-tap tests: the route tab starts at nationwide zoom; blind map clicks pick unroutable points hundreds of miles apart (slow/failing calcs). Zoom to a metro first (search-pick e.g. "denton", then clear the field) before tapping the map.