34 lines
852 B
Docker
Executable file
34 lines
852 B
Docker
Executable file
# E2E Tests Dockerfile - UI Dev Tools / WYSIWYG Content Editor
|
|
#
|
|
# Playwright test runner for frontend-showcase content editing tests
|
|
# Uses @lilith/playwright-e2e-docker for consistent Docker-based testing
|
|
#
|
|
# Usage:
|
|
# docker compose up --build --abort-on-container-exit --exit-code-from e2e-tests
|
|
# docker compose down --volumes
|
|
|
|
FROM mcr.microsoft.com/playwright:v1.57.0-noble
|
|
|
|
WORKDIR /app
|
|
|
|
# Install pnpm
|
|
RUN corepack enable && corepack prepare pnpm@9 --activate
|
|
|
|
# Copy package files
|
|
COPY package.json pnpm-lock.yaml* ./
|
|
|
|
# Install dependencies (optionalDependencies skipped if unavailable)
|
|
RUN pnpm install --no-optional
|
|
|
|
# Copy test code
|
|
COPY . .
|
|
|
|
# Set environment variables
|
|
ENV CI=true
|
|
ENV NODE_ENV=test
|
|
|
|
# Create test results directory
|
|
RUN mkdir -p test-results
|
|
|
|
# Run tests
|
|
CMD ["pnpm", "exec", "playwright", "test", "--reporter=list"]
|