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/ .vscode/
# Build artifacts # Build artifacts
desktop/frontend/dist/ examples/django-react-desktop-app/frontend/dist/
e2e/harness/src/api/generated.* examples/django-react-site/harness/src/api/generated.*
e2e/harness/test-results/ examples/django-react-site/harness/test-results/
# Env # Env
.env .env

View File

@@ -27,11 +27,11 @@ test-integration: docker-up
# ─── Docker ────────────────────────────────────────────────────────────────── # ─── Docker ──────────────────────────────────────────────────────────────────
docker-up: 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" @echo "Backend starting at http://localhost:8000"
docker-down: docker-down:
docker compose -f docker-compose.test.yml down docker compose -f examples/django-react-site/docker-compose.test.yml down
# ─── All ───────────────────────────────────────────────────────────────────── # ─── All ─────────────────────────────────────────────────────────────────────
@@ -40,7 +40,7 @@ test-all: test test-integration
# ─── Cleanup ───────────────────────────────────────────────────────────────── # ─── Cleanup ─────────────────────────────────────────────────────────────────
clean: 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 django/src/mizan.egg-info django/dist django/build
rm -rf react/dist react/node_modules rm -rf react/dist react/node_modules
rm -f examples/django-react-site/backend/db.sqlite3 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 cd react && npm test
# E2E integration tests (real browser, real backend) # 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 & cd examples/django-react-site/harness && npm install && npx mizan-generate && npx vite --port 5174 &
npx playwright test npx playwright test

View File

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

View File

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