[#70175] Better testing setup for BlockNote/Hocuspocus

https://community.openproject.org/work_packages/70175

This adds the capacity to run integration tests with a real Hocuspocus
backend (either locally or in docker).
This commit is contained in:
Judith Roth
2026-01-30 16:39:09 +01:00
parent 47bfe4bdf4
commit 7613e3f498
2 changed files with 114 additions and 0 deletions
+10
View File
@@ -123,6 +123,13 @@ services:
networks:
- testing
hocuspocus-test:
image: openproject/hocuspocus:latest
environment:
SECRET: secret12345
networks:
- testing
frontend-test:
build:
<<: *frontend-build
@@ -157,8 +164,11 @@ services:
condition: service_healthy
cuprite-chrome:
condition: service_started
hocuspocus-test:
condition: service_started
environment:
RAILS_ENV: test
OPENPROJECT_TESTING_WITH_DOCKER: "true"
OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"
DATABASE_URL: postgresql://openproject:openproject@db-test/openproject
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"