Files
APAW/archive/run-playwright-tests.sh
¨NW¨ 5a77528b23 refactor: clean up root directory - move deprecated files to archive
Archive:
- docker-compose.yml, Dockerfile.playwright
- scripts/ (legacy test scripts)
- docs/, .test/ (old documentation and tests)
- IMPROVEMENT_PROPOSAL.md (superseded by .kilo/)
- BROWSER_VISIBILITY.md, README.Docker.md
- cleanup-packages.sh, fix-permissions.sh, install-apaw.sh

Keep in root:
- .kilo/ (active system)
- .claude/ (Claude Code runtime)
- AGENTS.md (agent reference)
- README.md (main documentation)
- src/ (utility code)
- package.json, tsconfig.json (project config)
2026-04-05 03:52:10 +01:00

28 lines
635 B
Bash

#!/bin/bash
# Run Playwright MCP tests directly without docker-compose
echo "=== Starting Playwright MCP Server ==="
# Create directories
mkdir -p .test/screenshots/{baseline,current,diff} .test/reports
# Build and run container
echo "Building Docker image..."
docker build -t playwright-mcp -f Dockerfile.playwright . 2>&1 | tail -5
echo ""
echo "Running Playwright MCP (headed mode - browser will be visible)..."
echo ""
# Run with DISPLAY for headed mode
docker run --rm -it \
--ipc=host \
--shm-size=2g \
-v $(pwd):/app \
-e DISPLAY=$DISPLAY \
-p 8931:8931 \
playwright-mcp
echo ""
echo "Playwright MCP stopped."