From 8259a01d99b339af6155bb6d2688ff379e55ab92 Mon Sep 17 00:00:00 2001 From: Rhys Berrow <47635349+berroar@users.noreply.github.com> Date: Thu, 17 Sep 2020 11:00:47 +0100 Subject: [PATCH] Update checkbox text (#287) --- app/translations/messages.pot | 2 +- templates/partials/answers/checkbox.html | 2 +- tests/functional/spec/checkbox.spec.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/translations/messages.pot b/app/translations/messages.pot index e331c30423..533046f949 100644 --- a/app/translations/messages.pot +++ b/app/translations/messages.pot @@ -928,7 +928,7 @@ msgid "Manually enter address" msgstr "" #: templates/partials/answers/checkbox.html:8 -msgid "Select all that apply" +msgid "Select at least one answer" msgstr "" #: templates/partials/answers/date.html:23 diff --git a/templates/partials/answers/checkbox.html b/templates/partials/answers/checkbox.html index 2f9143803f..f362977420 100644 --- a/templates/partials/answers/checkbox.html +++ b/templates/partials/answers/checkbox.html @@ -5,7 +5,7 @@ {% elif answer.options|length == 1 %} {% set checkbox_label = '' %} {% else %} - {% set checkbox_label = _("Select all that apply") %} + {% set checkbox_label = _("Select at least one answer") %} {% endif %} {{ onsCheckboxes({ diff --git a/tests/functional/spec/checkbox.spec.js b/tests/functional/spec/checkbox.spec.js index 1c5ffa287d..98aa399547 100644 --- a/tests/functional/spec/checkbox.spec.js +++ b/tests/functional/spec/checkbox.spec.js @@ -9,7 +9,7 @@ describe('Checkbox with "other" option', () => { }); it("Given a label has not been provided in the schema for a checkbox answer, When the checkbox answer is displayed, Then the default label should be visible", () => { - expect($("body").getText()).to.have.string("Select all that apply"); + expect($("body").getText()).to.have.string("Select at least one answer"); }); it("Given a label has been set in the schema for a checkbox answer, When the checkbox answer is displayed, Then the label should be visible", () => {