- Add upload_screenshot function to gitea-commenting skill - Support multipart/form-data for attachments - Create .test/e2e_test_screenshots.py test script - Support SVG screenshots as placeholders - 2 attachments uploaded to Issue #12 successfully Gitea API: - POST /repos/{owner}/{repo}/issues/{id}/assets - Upload attachment - POST /repos/{owner}/{repo}/issues/{id}/comments - Comment with image reference - GET /repos/{owner}/{repo}/issues/{id}/assets - List attachments Milestone #44: All issues completed
28 lines
635 B
Bash
Executable File
28 lines
635 B
Bash
Executable File
#!/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."
|