Skip to content

Commit 7cf7d09

Browse files
committed
Install @playwright/test and related packages globally in base image
1 parent f2ef935 commit 7cf7d09

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile.base

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ ENV PATH="/opt/google-cloud-sdk/bin:${PATH}"
7878
# ============ GO SWAGGER (for apiv2) ============
7979
RUN go install github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0
8080

81-
# ============ PLAYWRIGHT BROWSERS ============
82-
RUN npx playwright install chromium && npx playwright install-deps
81+
# ============ PLAYWRIGHT ============
82+
# Install @playwright/test and related packages globally, then install matching browsers
83+
RUN npm install -g @playwright/test monocart-reporter coveralls && \
84+
npx playwright install chromium && \
85+
npx playwright install-deps
8386

8487
# Remove packages that conflict with our setup
8588
RUN apt-get update && apt-get remove -y apache2* sendmail* mlocate php-ssh2 || true && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)