Features: - Device presets (desktop, mobile, tablet, obs-overlay, all, electron) - Auth setup projects with storage state management - Cluster mode for Docker nginx multi-app routing - Multiple reporters (list, html, junit, github) - WebServer configuration for dev server management - Enhanced helpers: file upload, platform, performance, accessibility, storage - GitLab CI templates for package and consumers - Docker templates: Electron, web-only, cluster compose Breaking changes from 1.0: - Enhanced PlaywrightConfigOptions interface with new options - Exported commonDevices for device configuration access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
801 B
Text
38 lines
801 B
Text
# Web-only E2E Dockerfile (no Xvfb/Electron)
|
|
#
|
|
# Use this for web applications that don't need Electron support.
|
|
# Lighter weight than the full Electron Dockerfile.
|
|
#
|
|
# Usage:
|
|
# docker build -f e2e/Dockerfile.web -t my-app-e2e .
|
|
# docker run --rm -v $(pwd)/test-results:/app/test-results my-app-e2e
|
|
|
|
FROM mcr.microsoft.com/playwright:v1.57.0-noble
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install pnpm
|
|
RUN corepack enable && corepack prepare pnpm@8.15.0 --activate
|
|
|
|
# Copy package files
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN pnpm build
|
|
|
|
# Set environment
|
|
ENV CI=true
|
|
ENV NODE_ENV=test
|
|
|
|
# Create test results directory
|
|
RUN mkdir -p test-results
|
|
|
|
# Run tests
|
|
CMD ["pnpm", "test:e2e"]
|