Skip to content

Commit 5021280

Browse files
committed
chore/Update complaints received content
We've been asked to update the complaints content, specifically the cell that states where complaints are made to
1 parent d4fa11b commit 5021280

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

app/components/csr_table/complaints_scores_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def render?
1717
def descriptions
1818
[
1919
{
20-
term: content_tag(:p, "Complaints to Citizens Advice, Advice Direct Scotland and the Energy Ombudsman"),
20+
term: content_tag(:p,
21+
"Complaints to Citizens Advice Consumer Service, the Extra Help Unit, " \
22+
"Advice Direct Scotland, and the Energy Ombudsman"),
2123
description: content_tag(:p, "#{supplier.complaints_number} per 10,000 customers")
2224
}
2325
]

spec/components/csr_table/complaints_scores_component_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313

1414
it { is_expected.to have_text "Fewer complaints received" }
1515

16-
it { is_expected.to have_text "Complaints to Citizens Advice, Advice Direct Scotland and the Energy Ombudsman" }
16+
it {
17+
expect(page).to have_text "Complaints to Citizens Advice Consumer Service, the Extra Help Unit, " \
18+
"Advice Direct Scotland, and the Energy Ombudsman"
19+
}
20+
1721
it { is_expected.to have_text "172 per 10,000 customers" }
1822

1923
context "when there is no supplier" do

0 commit comments

Comments
 (0)