diff --git a/templates/safebars_v2.html b/templates/safebars_v2.html index c2ff8e5..255acf5 100644 --- a/templates/safebars_v2.html +++ b/templates/safebars_v2.html @@ -2139,7 +2139,7 @@

Study session setup

- +
@@ -2789,7 +2789,7 @@

Plain-language guide to interface terms

Object.entries(artifactInputs).forEach(([key, id]) => artifacts[key] = $(id).value.trim()); const payload = { project: { - title: $("projectTitle").value.trim(), + title: $("projectTitle").value.trim().replace(/\s+/g, " "), review_context: $("projectReviewContext").value.trim(), context: $("projectContext").value.trim(), target_people: $("targetPeople").value.trim(), diff --git a/tests/test_encounter_api.py b/tests/test_encounter_api.py index e213ab4..03ccc6e 100644 --- a/tests/test_encounter_api.py +++ b/tests/test_encounter_api.py @@ -390,6 +390,25 @@ def test_workspace_and_v1_routes_are_available(self): self.assertIn(b"Keep your record", workspace.data) self.assertIn(b"Six short questions", workspace.data) self.assertIn(b"Research area and ethics-review context", workspace.data) + self.assertIn( + b'