Commit Graph

7 Commits

Author SHA1 Message Date
NW
c258d16ef5 feat: add Gitea integration, E2E booking flow, Docker DNS fix, browser-launcher module
- Add tests/scripts/lib/gitea-client.js: Gitea API client with auth, comments,
  attachments, and Markdown report formatters for visual and console reports
- Add tests/scripts/lib/browser-launcher.js: shared Playwright launch config with
  --dns-resolution-order=hostname-first, realistic UA, and navigateTo() helper
  using waitUntil:'commit' + waitForLoadState('domcontentloaded')
- Add tests/scripts/e2e-booking-flow-v2.js: full E2E scenario for irina-vik.ru
  (register → book service → login → personal cabinet) with Gitea reporting
- Update visual-test-pipeline.js: GITEA_ISSUE env var, Gitea comment+attachment
  posting, browser-launcher integration, waitUntil:'commit' navigation
- Update console-error-monitor-standalone.js: same Gitea + DNS fixes
- Update capture-screenshots.js: browser-launcher integration, DNS fix
- Update docker-compose.web-testing.yml: NETWORK_MODE env var (bridge),
  DNS_RESOLUTION_ORDER, GITEA_USER/PASSWORD env passthrough, e2e-booking service
- Update tests/package.json: pin playwright to exact 1.52.0 (matches Docker image)
- Update .gitignore: add tests/visual/e2e/ for E2E screenshots
- Update .kilo/agents/visual-tester.md: Docker networking note, Gitea scripts,
  e2e-booking service, updated script table
- Update .kilo/commands/web-test.md: Docker Networking section, --issue flag,
  Gitea Integration section, e2e-booking service
- Update .kilo/commands/e2e-test.md: complete rewrite — Docker-based Playwright,
  no more MCP dependency, proper service table, Gitea integration docs
- Update .kilo/capability-index.yaml: add gitea_integration, e2e_booking_flow,
  docker_networking capabilities to visual-tester; add routing entries
2026-04-17 09:27:27 +01:00
NW
c6b15e0bcd feat: implement visual regression testing v2.0 — Playwright pipeline with bbox extraction
- Add visual-test-pipeline.js: captures screenshots, extracts UI elements with bounding boxes, compares via pixelmatch, reports console/network errors
- Add capture-screenshots.js: baseline/current screenshot capture at mobile/tablet/desktop viewports
- Add console-error-monitor-standalone.js: standalone console/network error detection without MCP dependency
- Rewrite docker-compose.web-testing.yml: real Playwright image, working services, proper volume mounts
- Update package.json: v2.0.0, add playwright dependency, clean scripts
- Update README.md: accurate Docker-first docs with usage examples
- Add .gitignore: exclude node_modules, current/diff screenshots, reports
- Include baseline screenshots for bbox.wtf homepage
2026-04-16 22:32:41 +01:00
¨NW¨
e074612046 feat: add web testing infrastructure
- Docker configurations for Playwright MCP (no host pollution)
- Visual regression testing with pixelmatch
- Link checking for 404/500 errors
- Console error detection with Gitea issue creation
- Form testing capabilities
- /web-test and /web-test-fix commands
- web-testing skill documentation
- Reorganize project structure (docker/, scripts/, tests/)
- Update orchestrator model to ollama-cloud/glm-5

Structure:
- docker/ - Docker configurations (moved from archive)
- scripts/ - Utility scripts
- tests/ - Test suite with visual, console, links testing
- .kilo/commands/ - /web-test and /web-test-fix commands
- .kilo/skills/ - web-testing skill

Issues: #58 #60 #62
2026-04-07 08:55:24 +01:00
¨NW¨
01ce40ae8a restore: Docker evolution test files for remote usage
Docker files restored for use on other machines with Docker/WSL2.

Available test methods:
1. Docker (isolated environment):
   docker-compose -f docker/evolution-test/docker-compose.yml up evolution-feature

2. Local (bun runtime):
   docker/evolution-test/run-local-test.bat feature
   ./docker/evolution-test/run-local-test.sh feature

Both methods provide:
- Millisecond precision timing
- Fitness score with 2 decimal places
- JSONL logging to .kilo/logs/fitness-history.jsonl
2026-04-06 01:36:26 +01:00
¨NW¨
b5c5f5ba82 chore: remove Docker test files - use local testing instead
Docker Desktop removed from system. Evolution testing uses local bun runtime.

Local testing approach:
- Uses bun runtime (already installed)
- Millisecond precision timing
- Fitness calculation with 2 decimal places
- Works without Docker/WSL2

Usage:
  powershell: docker/evolution-test/run-local-test.bat feature
  bash: ./docker/evolution-test/run-local-test.sh feature

Tests verified:
  - 54/54 tests pass (100%)
  - Time: 214.16ms precision
  - Fitness: 1.00 (PASS)
2026-04-06 01:34:24 +01:00
¨NW¨
0dbc15b602 feat: add local fallback scripts for evolution testing
- run-local-test.sh - Bash script for Linux/macOS
- run-local-test.bat - Batch script for Windows
- PowerShell timing with millisecond precision
- Fitness calculation with 2 decimal places
- Works without Docker (less precise environment)
- Logs to .kilo/logs/fitness-history.jsonl

Usage:
  ./docker/evolution-test/run-local-test.sh feature
  docker\evolution-test\run-local-test.bat feature

Both scripts calculate:
- Test pass rate (2 decimals)
- Quality gates (5 gates)
- Efficiency score (time/normalized)
- Final fitness (weighted average)
2026-04-06 01:03:54 +01:00
¨NW¨
1703247651 feat: add Docker-based evolution testing with precise measurements
- Add docker/evolution-test/Dockerfile with bun, TypeScript
- Add docker/evolution-test/docker-compose.yml for parallel workflow testing
- Add run-evolution-test.sh and .bat scripts for cross-platform
- Update pipeline-judge.md with Docker-first approach:
  - Millisecond precision timing (date +%s%3N)
  - 2 decimal places for test pass rate and coverage
  - Docker container for consistent test environment
  - Multiple workflow types (feature/bugfix/refactor/security)

Enables:
- Parallel testing with docker-compose
- Consistent environment across machines
- Precise fitness measurements (ms, 2 decimals)
- Multi-workflow testing in containers
2026-04-06 00:48:21 +01:00