Fix Playwright E2E tests - Alpine container incompatibility #12

Open
opened 2026-02-17 16:47:10 +00:00 by santhoshj · 0 comments
Owner

Summary

Playwright E2E tests fail because the frontend container is Alpine-based and doesn't support Playwright browsers out of the box.

Error

Error: browserType.launch: Failed to launch: Error: spawn /root/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell ENOENT

Root Cause

  • Alpine Linux uses musl libc instead of glibc
  • Playwright browsers require glibc
  • npx playwright install --with-deps tries to use apt-get (not available in Alpine)

Acceptance Criteria

  • Either switch to Debian-based Node image, OR
  • Install gcompat for glibc compatibility, OR
  • Run E2E tests outside container (on host)
  • Quality gate requirement: E2E tests must pass
## Summary Playwright E2E tests fail because the frontend container is Alpine-based and doesn't support Playwright browsers out of the box. ## Error ``` Error: browserType.launch: Failed to launch: Error: spawn /root/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell ENOENT ``` ## Root Cause - Alpine Linux uses musl libc instead of glibc - Playwright browsers require glibc - `npx playwright install --with-deps` tries to use apt-get (not available in Alpine) ## Acceptance Criteria - [ ] Either switch to Debian-based Node image, OR - [ ] Install gcompat for glibc compatibility, OR - [ ] Run E2E tests outside container (on host) ## Related - Quality gate requirement: E2E tests must pass
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/headroom#12