|
|
@@ -181,6 +181,17 @@ TEST_FRONTEND_CT_VARIANTS = \
|
|
|
test_frontend_ct_editor_other \
|
|
|
test_frontend_ct_editor_visual \
|
|
|
|
|
|
+TEST_FRONTEND_CT_TARGETS = \
|
|
|
+ $(TEST_FRONTEND_CT_VARIANTS) \
|
|
|
+ build_test_frontend_ct \
|
|
|
+ test_frontend_ct_ui \
|
|
|
+
|
|
|
+$(TEST_FRONTEND_CT_TARGETS): export USER_UID=$(shell id -u)
|
|
|
+$(TEST_FRONTEND_CT_TARGETS): export USER_GID=$(shell id -g)
|
|
|
+
|
|
|
+test_frontend_ct_ui:
|
|
|
+ docker compose -f docker-compose.cypress.yml run --rm cypress run cypress:open-ct -- --browser chrome
|
|
|
+
|
|
|
#
|
|
|
# Writefull tests
|
|
|
#
|
|
|
@@ -192,6 +203,7 @@ test_writefull:
|
|
|
|
|
|
# Note: The below cypress targets are for CI only
|
|
|
build_test_frontend_ct:
|
|
|
+ $(DOCKER_COMPOSE) build test_frontend_ct
|
|
|
docker run --rm --volume /dev/shm:/dev/shm --user root $(IMAGE_CI) bash -ec 'for path in /overleaf/services/web/cypress/results /overleaf/services/web/node_modules/.cache; do mkdir -p $$path; chown -R node:node $$path; done && tar -cC / overleaf | tar -xC /dev/shm'
|
|
|
|
|
|
test_frontend_ct_core_other: export CYPRESS_DOWNLOADS=./cypress/downloads/core
|