Move Playwright, Docker, and package.json into examples/django-react-site

Root directory now contains only the two core packages (django/, react/),
examples/, and top-level docs. All e2e/integration test infrastructure
lives in examples/django-react-site/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-31 21:04:51 -04:00
parent eee352d908
commit f3c225ef49
7 changed files with 10 additions and 10 deletions

6
.gitignore vendored
View File

@@ -21,9 +21,9 @@ package-lock.json
.vscode/
# Build artifacts
desktop/frontend/dist/
e2e/harness/src/api/generated.*
e2e/harness/test-results/
examples/django-react-desktop-app/frontend/dist/
examples/django-react-site/harness/src/api/generated.*
examples/django-react-site/harness/test-results/
# Env
.env

View File

@@ -27,11 +27,11 @@ test-integration: docker-up
# ─── Docker ──────────────────────────────────────────────────────────────────
docker-up:
docker compose -f docker-compose.test.yml up -d --build
docker compose -f examples/django-react-site/docker-compose.test.yml up -d --build
@echo "Backend starting at http://localhost:8000"
docker-down:
docker compose -f docker-compose.test.yml down
docker compose -f examples/django-react-site/docker-compose.test.yml down
# ─── All ─────────────────────────────────────────────────────────────────────
@@ -40,7 +40,7 @@ test-all: test test-integration
# ─── Cleanup ─────────────────────────────────────────────────────────────────
clean:
docker compose -f docker-compose.test.yml down -v --remove-orphans 2>/dev/null || true
docker compose -f examples/django-react-site/docker-compose.test.yml down -v --remove-orphans 2>/dev/null || true
rm -rf django/src/mizan.egg-info django/dist django/build
rm -rf react/dist react/node_modules
rm -f examples/django-react-site/backend/db.sqlite3

View File

@@ -275,7 +275,7 @@ cd django && uv sync --extra dev --extra channels && uv run pytest
cd react && npm test
# E2E integration tests (real browser, real backend)
docker compose -f docker-compose.test.yml up -d
docker compose -f examples/django-react-site/docker-compose.test.yml up -d
cd examples/django-react-site/harness && npm install && npx mizan-generate && npx vite --port 5174 &
npx playwright test

View File

@@ -6,8 +6,8 @@ services:
django:
build:
context: .
dockerfile: Dockerfile.test
context: ../..
dockerfile: examples/django-react-site/Dockerfile.test
ports:
- "8000:8000"
depends_on:

View File

@@ -1,7 +1,7 @@
import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './examples/django-react-site',
testDir: '.',
timeout: 15000,
retries: 0,
reporter: 'list',