diff --git a/e2e/prod-auth/Dockerfile b/e2e/prod-auth/Dockerfile index 6cae55a3e..559b0f479 100644 --- a/e2e/prod-auth/Dockerfile +++ b/e2e/prod-auth/Dockerfile @@ -7,21 +7,12 @@ # # Build context should be project root (lilith-platform/) -FROM mcr.microsoft.com/playwright:v1.40.0-jammy +FROM mcr.microsoft.com/playwright:v1.50.0-noble WORKDIR /app -# Install bun for faster installs -RUN npm install -g bun - -# Configure npm for @lilith packages -ARG NPM_REGISTRY=http://forge.nasty.sh/api/packages/lilith/npm/ -RUN mkdir -p ~/.bun && \ - echo "[install.scopes]" > ~/.bun/bunfig.toml && \ - echo '"@lilith" = { url = "'"${NPM_REGISTRY}"'" }' >> ~/.bun/bunfig.toml - -# Copy the e2e-auth package first (it's a dependency) -COPY codebase/@packages/@testing/e2e-auth/ ./node_modules/@platform/e2e-auth/ +# Copy the e2e-auth package (local testing utility) +COPY codebase/@packages/@testing/e2e-auth/ ./packages/e2e-auth/ # Copy test package files COPY codebase/e2e/prod-auth/package.json ./ @@ -31,11 +22,11 @@ COPY codebase/e2e/prod-auth/tsconfig.json ./ COPY codebase/e2e/prod-auth/tests/ ./tests/ COPY codebase/e2e/prod-auth/playwright.config.ts ./ -# Install dependencies (playwright and types) -RUN bun install --ignore-scripts +# Install dependencies +RUN npm install --ignore-scripts # Create directories for test outputs RUN mkdir -p /app/test-results /app/playwright-report # Default command runs tests -CMD ["bun", "run", "test"] +CMD ["npx", "playwright", "test"]