e8f7502a7f
`@playwright/test` was loose-pinned to ^1.50.0; npm resolved it to 1.59.1 inside the runner image, which only ships browser binaries for 1.50.0. Pin both the package and the docker image to v1.59.1 so deps and binaries stay aligned.
22 lines
781 B
Docker
22 lines
781 B
Docker
# Playwright runner for the e2e suite. Built and run by
|
|
# e2e/compose.e2e.yml so the test process sits on the same docker
|
|
# network as the server, agent, and rest-server. The previous setup
|
|
# ran Playwright on the workflow runner host and reached the server
|
|
# via 127.0.0.1:8080; that fails on Gitea's act-style runners
|
|
# because the workflow steps execute inside a runner container,
|
|
# not on the host where compose publishes its ports.
|
|
|
|
FROM mcr.microsoft.com/playwright:v1.59.1-jammy
|
|
|
|
WORKDIR /work
|
|
|
|
# Install npm deps in a separate layer keyed off package.json so
|
|
# changes to specs don't bust the dep cache.
|
|
COPY e2e/playwright/package.json /work/package.json
|
|
RUN npm install --no-audit --no-fund
|
|
|
|
COPY e2e/playwright/ /work/
|
|
|
|
ENV CI=1
|
|
ENTRYPOINT ["npx", "playwright", "test"]
|