89b24d4c34
- Add tsconfig.json (server) + client/tsconfig.{json,app.json,node.json}
so typecheck and tsc -b actually work.
- Fix npm test to run Playwright (was running vitest on Playwright specs);
typecheck now covers both server and client.
- Mount routes before app.listen, add error handler, mount optional
@tonycodes/auth-express middleware when AUTH_SECRET is set.
- Add /api/trips (GET/POST/PATCH/DELETE) backed by an in-memory store
that gracefully degrades when DATABASE_URL is unset.
- Add prisma/seed.ts skeleton and server/types/express.d.ts for req.auth.
- Rewrite Grok prompt for combo-aware planning: charge+eat,
stay+destination-charging, eat+viewpoint, etc., with amenities,
cuisine, priceLevel, duration, day titles and trip highlights.
- Extend Stop schema + normalization to preserve all enrichment fields.
- New StopCard component renders combo pill, description, meta row
(charge / stop / battery / cuisine / £-level) and amenity icons;
map popups show the same enriched detail; timeline gains day titles
and a HIGHLIGHTS sidebar.
- Fix server TS errors (vehicle accepted as string | {name,rangeKm},
JSON parse results typed).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
31 lines
994 B
Bash
Executable File
31 lines
994 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run all E2E tests in headed + slow-motion mode.
|
|
# Perfect for watching realistic user behavior including full route planning.
|
|
|
|
set -e
|
|
|
|
echo "🚀 Tesla Roadtrip - Headed E2E Test Suite (with Slow Motion)"
|
|
echo "============================================================="
|
|
echo ""
|
|
echo "Tests will run visibly so you can watch:"
|
|
echo " • Local Heavy badge"
|
|
echo " • Chat + Quick Prompts"
|
|
echo " • Multi-day itinerary generation"
|
|
echo " • Real OSRM driving routes (red polylines) on the map"
|
|
echo " • Summary stats (km, hours, Superchargers count)"
|
|
echo ""
|
|
|
|
export HEADED=1
|
|
|
|
echo "→ Running Route-Focused Smoke Test..."
|
|
npx playwright test tests/grok-api-diagnostic.spec.ts --headed --reporter=list
|
|
|
|
echo ""
|
|
echo "→ Running Full Comprehensive Route Planning Tests..."
|
|
npx playwright test tests/roadtrip-flow.spec.ts --headed --reporter=list
|
|
|
|
echo ""
|
|
echo "✅ All headed E2E tests completed successfully."
|
|
echo " Videos and screenshots are in test-results/"
|