Skip to content

Commit 30f5cbe

Browse files
authored
Merge pull request #3837 from nhsuk/rename-get-consent-button
Rename get consent button
2 parents c992b53 + c54dd01 commit 30f5cbe

14 files changed

Lines changed: 16 additions & 16 deletions

app/components/app_patient_session_consent_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
secondary: true %>
2929
<% end %>
3030

31-
<%= govuk_button_to "Get verbal consent",
31+
<%= govuk_button_to "Record a new consent response",
3232
session_patient_programme_consents_path(
3333
session, patient, programme
3434
),

spec/components/app_patient_session_consent_component_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
it { should_not have_css("details", text: /Consent (given|refused) by/) }
2121
it { should_not have_css("details", text: "Responses to health questions") }
2222
it { should have_css("p", text: "No requests have been sent.") }
23-
it { should have_css("button", text: "Get verbal consent") }
23+
it { should have_css("button", text: "Record a new consent response") }
2424

2525
context "when session is not in progress" do
2626
let(:session) { create(:session, :scheduled, programmes: [programme]) }
@@ -35,7 +35,7 @@
3535
end
3636

3737
it { should_not have_css("p", text: "No requests have been sent.") }
38-
it { should_not have_css("button", text: "Get verbal consent") }
38+
it { should_not have_css("button", text: "Record a new consent response") }
3939
it { should_not have_css("button", text: "Assess Gillick competence") }
4040
end
4141

spec/features/e2e_journey_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def when_i_register_verbal_consent_and_triage
189189
click_link "Register"
190190
click_link "TABLES, Bobby"
191191

192-
click_button "Get verbal consent"
192+
click_button "Record a new consent response"
193193

194194
choose "Big Daddy Tests"
195195
click_button "Continue"

spec/features/self_consent_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def then_the_details_of_the_gillick_non_competence_assessment_are_visible
141141
end
142142

143143
def and_the_child_cannot_give_their_own_consent
144-
click_on "Get verbal consent"
144+
click_on "Record a new consent response"
145145
expect(page).not_to have_content("Child (Gillick competent)")
146146
click_on "Back"
147147
end
@@ -213,7 +213,7 @@ def and_the_activity_log_shows_the_gillick_competence
213213
end
214214

215215
def and_the_nurse_records_consent_for_the_child
216-
click_on "Get verbal consent"
216+
click_on "Record a new consent response"
217217

218218
# who
219219
choose "Child (Gillick competent)"

spec/features/verbal_consent_but_no_triage_for_admin_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def given_i_am_signed_in_as_an_admin
2424
def when_i_record_that_consent_was_given_but_keep_in_triage
2525
visit session_consent_path(@session)
2626
click_link @patient.full_name
27-
click_button "Get verbal consent"
27+
click_button "Record a new consent response"
2828

2929
# Who are you trying to get consent from?
3030
choose @parent.full_name

spec/features/verbal_consent_change_answers_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def when_i_get_consent_for_the_patient
4343
sign_in @nurse
4444
visit session_consent_path(@session)
4545
click_link @patient.full_name
46-
click_button "Get verbal consent"
46+
click_button "Record a new consent response"
4747
end
4848

4949
def and_i_choose_the_parent

spec/features/verbal_consent_given_by_new_parental_contact_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def given_i_am_signed_in
2323
def when_i_start_recording_consent_from_a_new_parental_contact
2424
visit session_consent_path(@session)
2525
click_link @patient.full_name
26-
click_button "Get verbal consent"
26+
click_button "Record a new consent response"
2727

2828
# Who are you trying to get consent from?
2929
choose "Add a new parental contact"

spec/features/verbal_consent_given_do_not_vaccinate_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def given_i_am_signed_in
2424
def when_i_record_that_verbal_consent_was_given_but_that_its_not_safe_to_vaccinate
2525
visit session_consent_path(@session)
2626
click_link @patient.full_name
27-
click_button "Get verbal consent"
27+
click_button "Record a new consent response"
2828

2929
# Who are you trying to get consent from?
3030
choose @parent.full_name

spec/features/verbal_consent_given_keep_in_triage_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def given_i_am_signed_in
2424
def when_i_record_that_consent_was_given_but_keep_in_triage
2525
visit session_consent_path(@session)
2626
click_link @patient.full_name
27-
click_button "Get verbal consent"
27+
click_button "Record a new consent response"
2828

2929
# Who are you trying to get consent from?
3030
choose @parent.full_name

spec/features/verbal_consent_given_safe_to_vaccinate_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def given_i_am_signed_in
2525
def when_i_record_that_consent_was_given_with_some_health_notes_that_dont_contraindicate
2626
visit session_consent_path(@session)
2727
click_link @patient.full_name
28-
click_button "Get verbal consent"
28+
click_button "Record a new consent response"
2929

3030
# Who are you trying to get consent from?
3131
choose @parent.full_name

0 commit comments

Comments
 (0)