[server-ce] test: use ports 323x when running native cypress (#32182)

GitOrigin-RevId: 7b826e33f47b59ba69a1def90ce05aecbcbb1cf5
This commit is contained in:
Jakob Ackermann
2026-03-17 10:47:04 +01:00
committed by Copybot
parent 34fc7e2c7a
commit cbe2a19dac
3 changed files with 42 additions and 13 deletions

View File

@@ -18,11 +18,21 @@ IMAGE_TAG_PRO_BASE := $(shell echo $(IMAGE_TAG_PRO) | sed -E s/:.+//)
test-e2e-native:
docker compose -f docker-compose.yml -f docker-compose.native.yml up --no-log-prefix sharelatex host-admin -d
CYPRESS_HOST_ADMIN_URL='http://localhost:8081' \
CYPRESS_SAML_URL='http://localhost:8082' \
CYPRESS_MAILTRAP_URL='http://localhost:8083' \
CYPRESS_BASE_URL='http://127.0.0.1:3231' \
CYPRESS_HOST_ADMIN_URL='http://127.0.0.1:3232' \
CYPRESS_SAML_URL='http://127.0.0.1:3233' \
CYPRESS_MAILTRAP_URL='http://127.0.0.1:3234' \
npm run cypress:open
# For testing "native" on Linux
test-e2e-native-linux:
docker compose -f docker-compose.yml -f docker-compose.native.yml up --no-log-prefix sharelatex host-admin -d
CYPRESS_BASE_URL='http://127.0.0.1:3231' \
CYPRESS_HOST_ADMIN_URL='http://127.0.0.1:3232' \
CYPRESS_SAML_URL='http://127.0.0.1:3233' \
CYPRESS_MAILTRAP_URL='http://127.0.0.1:3234' \
docker compose -f docker-compose.yml -f docker-compose.native.yml up --no-log-prefix cypress
test-e2e:
docker compose build host-admin
docker compose up --detach --wait host-admin