Skip to content

Commit 3aa6867

Browse files
Merge pull request #5771 from nhsuk/alistair/standardise-batch-number
Standardise content to use "Batch number"
2 parents 574e9e2 + d6fb05c commit 3aa6867

11 files changed

Lines changed: 22 additions & 17 deletions

app/components/app_vaccination_record_summary_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def call
6666
end
6767

6868
summary_list.with_row do |row|
69-
row.with_key { "Batch ID" }
69+
row.with_key { "Batch number" }
7070

7171
if @batch
7272
row.with_value(classes: ["app-u-code"]) { batch_id_value }

app/views/batches/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<%= form_with model: @form, url: vaccine_batches_path(@vaccine), method: :post do |f| %>
1515
<% content_for(:before_content) { f.govuk_error_summary } %>
1616

17-
<%= f.govuk_text_field :name, label: { text: "Batch" }, width: 10, class: "nhsuk-input--code" %>
17+
<%= f.govuk_text_field :name, label: { text: "Batch number" }, width: 10, class: "nhsuk-input--code" %>
1818

1919
<%= f.govuk_date_field :expiry,
2020
legend: { text: "Expiry date", size: "s" },

app/views/vaccines/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<%= govuk_table do |table| %>
1616
<%= table.with_head do |head| %>
1717
<%= head.with_row do |row| %>
18-
<%= row.with_cell(text: "Batch") %>
18+
<%= row.with_cell(text: "Batch number") %>
1919
<%= row.with_cell(text: "Entered date") %>
2020
<%= row.with_cell(text: "Expiry date") %>
2121
<%= row.with_cell(text: "Actions") %>

spec/components/app_vaccination_record_summary_component_spec.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,21 @@
196196
end
197197
end
198198

199-
describe "batch ID row" do
200-
it { should have_css(".nhsuk-summary-list__row", text: "Batch IDABC") }
199+
describe "batch number row" do
200+
it { should have_css(".nhsuk-summary-list__row", text: "Batch numberABC") }
201201

202202
context "without a vaccine" do
203203
let(:outcome) { :unwell }
204204
let(:vaccine) { nil }
205205
let(:batch) { nil }
206206
let(:other_batch) { nil }
207207

208-
it { should_not have_css(".nhsuk-summary-list__row", text: "Batch ID") }
208+
it do
209+
expect(rendered).not_to have_css(
210+
".nhsuk-summary-list__row",
211+
text: "Batch number"
212+
)
213+
end
209214
end
210215
end
211216

spec/features/edit_vaccination_record_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def and_i_choose_a_batch
597597
end
598598

599599
def and_i_should_see_the_updated_batch
600-
expect(page).to have_content("Batch ID#{@replacement_batch.name}")
600+
expect(page).to have_content("Batch number#{@replacement_batch.name}")
601601
end
602602

603603
def when_i_click_change_notes

spec/features/hpv_vaccination_administered_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def then_i_see_the_patient_session_page
193193
def then_i_see_the_confirmation_page
194194
expect(page).to have_content("Check and confirm")
195195
expect(page).to have_content("Child#{@patient.full_name}")
196-
expect(page).to have_content("Batch ID#{@active_batch.name}")
196+
expect(page).to have_content("Batch number#{@active_batch.name}")
197197
expect(page).to have_content("MethodIntramuscular")
198198
expect(page).to have_content("SiteLeft arm")
199199
expect(page).to have_content("OutcomeVaccinated")

spec/features/hpv_vaccination_clinic_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def and_i_select_a_location
8484
def then_i_see_the_confirmation_page
8585
expect(page).to have_content("Check and confirm")
8686
expect(page).to have_content("Child#{@patient.full_name}")
87-
expect(page).to have_content("Batch ID#{@active_batch.name}")
87+
expect(page).to have_content("Batch number#{@active_batch.name}")
8888
expect(page).to have_content("MethodIntramuscular")
8989
expect(page).to have_content("SiteLeft arm")
9090
expect(page).to have_content("OutcomeVaccinated")

spec/features/import_vaccination_records_with_duplicates_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,17 @@ def when_i_review_the_first_duplicate_record
180180
end
181181

182182
def then_i_should_see_the_first_duplicate_record
183-
expect(page).to have_content("Batch ID123013325")
184-
expect(page).to have_content("Batch IDSomethingElse")
183+
expect(page).to have_content("Batch number123013325")
184+
expect(page).to have_content("Batch numberSomethingElse")
185185
expect(page).to have_content("MethodIntramuscular")
186186
expect(page).to have_content("MethodNasal spray")
187187
expect(page).to have_content("SiteLeft thigh")
188188
expect(page).to have_content("SiteNose")
189189
end
190190

191191
def then_i_should_see_the_second_duplicate_record
192-
expect(page).to have_content("Batch ID123013325")
193-
expect(page).to have_content("Batch IDCervarixBatch")
192+
expect(page).to have_content("Batch number123013325")
193+
expect(page).to have_content("Batch numberCervarixBatch")
194194
expect(page).to have_content("MethodNasal spray")
195195
expect(page).to have_content("SiteLeft arm (upper position)")
196196
expect(page).to have_content("SiteNose")

spec/features/manage_batches_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def then_i_see_only_active_hpv_vaccines_with_no_batches_set_up
6262
def when_i_try_to_add_a_batch_with_an_invalid_expiry_date
6363
click_on "Add a new batch", match: :first
6464

65-
fill_in "Batch", with: "AB1234"
65+
fill_in "Batch number", with: "AB1234"
6666

6767
# expiry date
6868
fill_in "Day", with: "0"
@@ -120,7 +120,7 @@ def then_i_see_the_success_banner
120120
def when_i_add_the_archived_batch_again
121121
click_on "Add a new batch", match: :first
122122

123-
fill_in "Batch", with: "AB1234"
123+
fill_in "Batch number", with: "AB1234"
124124

125125
fill_in "Day", with: "31"
126126
fill_in "Month", with: "3"

spec/features/menacwy_vaccination_administered_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def and_i_select_the_batch
118118
def then_i_see_the_confirmation_page
119119
expect(page).to have_content("Check and confirm")
120120
expect(page).to have_content("Child#{@patient.full_name}")
121-
expect(page).to have_content("Batch ID#{@active_batch.name}")
121+
expect(page).to have_content("Batch number#{@active_batch.name}")
122122
expect(page).to have_content("MethodIntramuscular")
123123
expect(page).to have_content("SiteLeft arm")
124124
expect(page).to have_content("OutcomeVaccinated")

0 commit comments

Comments
 (0)