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:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -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
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
@@ -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',
|
||||||
Reference in New Issue
Block a user