Skip to content

Commit b561359

Browse files
authored
Merge pull request #754 from citizensadvice/csr-update-content-tweaks
chore/Content changes for CSR table updates
2 parents 5f48f22 + 7a2c8da commit b561359

10 files changed

+11
-11
lines changed

app/components/csr_table/billing_and_metering_scores_component.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.cads-grid-row
22
.cads-grid-col-md-9
33
.section-scores
4-
%h2 Billing and metering
54
.cads-prose
5+
%h3 Billing and metering
66
%p
77
We measure billing accuracy by looking at how many bills are based on a meter reading, rather than an estimate.
88
= render CsrTable::DescriptionListComponent.new do |c|

app/components/csr_table/complaints_scores_component.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.cads-grid-row
22
.cads-grid-col-md-9
33
.section-scores
4-
%h2 Complaints received
54
.cads-prose
5+
%h3 Fewer complaints received
66
%p
77
If a supplier gets a low number of complaints, we give them a higher star rating.
88
= render CsrTable::DescriptionListComponent.new do |c|

app/components/csr_table/contact_waiting_time_scores_component.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.cads-grid-row
22
.cads-grid-col-md-9
33
.section-scores
4-
%h2 Contact waiting time
54
.cads-prose
5+
%h3 Contact waiting time
66
%p
77
How long can you expect to wait when contacting this supplier?
88
= render CsrTable::DescriptionListComponent.new do |c|

app/components/csr_table/customer_commitments_component.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.cads-grid-row
22
.cads-grid-col-md-9
33
.section-scores
4-
%h2 Customer commitments
54
.cads-prose
5+
%h3 Customer commitments
66
%p
77
Is the supplier a member of the Energy Switch Guarantee or the Vulnerability Commitment?
88
= render CsrTable::DescriptionListComponent.new do |c|
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.fuel-mix
22
.cads-prose
3-
%h3 Fuel Mix
3+
%h2 Fuel mix
44
= fuel_mix_intro
55
= fuel_mix

app/components/csr_table/fuel_mix_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def render?
1919
def descriptions
2020
[
2121
{
22-
term: content_tag(:h3, "Fuel Mix"),
22+
term: content_tag(:h3, "Fuel mix"),
2323
intro: fuel_mix_intro,
2424
description: fuel_mix
2525
}

app/views/csr_table/suppliers/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- if Feature.enabled?("FF_NEW_CSR_DATA")
2828
.cads-prose
2929
%h2
30-
More information
30+
Scores breakdown
3131
%p
3232
We give energy suppliers a score out of 5 for each category, based on various data. You can look at this data in more detail below.
3333
%p

spec/components/csr_table/complaints_scores_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
render_inline described_class.new(supplier)
1212
end
1313

14-
it { is_expected.to have_text "Complaints received" }
14+
it { is_expected.to have_text "Fewer complaints received" }
1515

1616
it { is_expected.to have_text "Complaints to Citizens Advice, Advice Direct Scotland and the Energy Ombudsman" }
1717
it { is_expected.to have_text "172 per 10,000 customers" }

spec/components/csr_table/fuel_mix_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
render_inline described_class.new(supplier)
1212
end
1313

14-
it { is_expected.to have_text "Fuel Mix" }
14+
it { is_expected.to have_text "Fuel mix" }
1515
it { is_expected.to have_text "fuel mix content" }
1616
end

spec/requests/csr_table/suppliers_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@
238238
end
239239
end
240240

241-
it "renders the More Information heading" do
242-
expect(response.body).to include("<h2>\nMore information\n</h2>")
241+
it "renders the Scores breakdown heading" do
242+
expect(response.body).to include("<h2>\nScores breakdown\n</h2>")
243243
end
244244

245245
# rubocop:disable Layout/LineLength

0 commit comments

Comments
 (0)