feat(test): implement Playwright E2E and Dockerized testing infrastructure
Some checks failed
Build SilverBullet Plug / build (push) Has been cancelled

This commit is contained in:
2026-02-21 13:13:06 -08:00
parent 29ce643ac1
commit 90ab92421a
17 changed files with 5202 additions and 99 deletions

View File

@@ -1,12 +1,11 @@
services:
silverbullet-test:
image: zefhemel/silverbullet:latest
image: zefhemel/silverbullet:2.4.0
ports:
- "3001:3000"
volumes:
- sb-test-space:/space
- ./test_space_e2e:/space
environment:
- SB_USER=admin:admin
- SB_LOG_PUSH=true
- SB_DEBUG=true
- SB_SPACE_LUA_TRUSTED=true
@@ -17,18 +16,21 @@ services:
- "8081:80"
volumes:
- ./test_data:/usr/share/nginx/html:ro
- ./test_data/nginx.conf:/etc/nginx/nginx.conf:ro
playwright:
image: mcr.microsoft.com/playwright:v1.49.0-jammy
image: mcr.microsoft.com/playwright:v1.58.2-jammy
network_mode: "service:silverbullet-test"
volumes:
- .:/work
- /work/node_modules
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /work
environment:
- CI=true
depends_on:
- silverbullet-test
- mock-ics-server
command: npx playwright test
- DISPLAY=${DISPLAY:-:0}
- SB_URL=http://localhost:3000
command: sh -c "npm install && npx playwright test"
volumes:
sb-test-space: