Skip to content

Commit d2d25cc

Browse files
committed
Unescape HTML-escaped apostrophes in regression test artefacts
Since #2098 & #2112, apostrophes rendered via `SmartAnswer::ErbRenderer` have not been HTML-escaped. Now that we are rendering question content via this renderer, we need to update the regression test artefacts for question pages accordingly. I ran the following commands to do this: $ find test/artefacts/childcare-costs-for-tax-credits -name '*.html' | xargs sed -i .bak "s/'/'/g" $ git clean -fd test/artefacts/childcare-costs-for-tax-credits/**/*.bak
1 parent e37ab25 commit d2d25cc

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

test/artefacts/childcare-costs-for-tax-credits/no.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2>
5050
<li>
5151
<label for="response_1" class="selectable">
5252
<input type="radio" name="response" id="response_1" value="regularly_more_than_year" />
53-
I&#39;ve been using childcare regularly for a year or more
53+
I've been using childcare regularly for a year or more
5454
</label>
5555
</li>
5656
<li>

test/artefacts/childcare-costs-for-tax-credits/no/regularly_more_than_year.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h3 class="previous-answers-title">
9999
<tr class="section">
100100
<td class="previous-question-title">How often do you use childcare?</td>
101101
<td class="previous-question-body">
102-
I&#39;ve been using childcare regularly for a year or more</td>
102+
I've been using childcare regularly for a year or more</td>
103103

104104
<td class="link-right">
105105
<a href="/childcare-costs-for-tax-credits/y/no?previous_response=regularly_more_than_year">

test/artefacts/childcare-costs-for-tax-credits/no/regularly_more_than_year/no.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h3 class="previous-answers-title">
8181
<tr class="section">
8282
<td class="previous-question-title">How often do you use childcare?</td>
8383
<td class="previous-question-body">
84-
I&#39;ve been using childcare regularly for a year or more</td>
84+
I've been using childcare regularly for a year or more</td>
8585

8686
<td class="link-right">
8787
<a href="/childcare-costs-for-tax-credits/y/no?previous_response=regularly_more_than_year">

test/artefacts/childcare-costs-for-tax-credits/no/regularly_more_than_year/yes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h3 class="previous-answers-title">
123123
<tr class="section">
124124
<td class="previous-question-title">How often do you use childcare?</td>
125125
<td class="previous-question-body">
126-
I&#39;ve been using childcare regularly for a year or more</td>
126+
I've been using childcare regularly for a year or more</td>
127127

128128
<td class="link-right">
129129
<a href="/childcare-costs-for-tax-credits/y/no?previous_response=regularly_more_than_year">

test/artefacts/childcare-costs-for-tax-credits/no/regularly_more_than_year/yes/every_4_weeks.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3 class="previous-answers-title">
8080
<tr class="section">
8181
<td class="previous-question-title">How often do you use childcare?</td>
8282
<td class="previous-question-body">
83-
I&#39;ve been using childcare regularly for a year or more</td>
83+
I've been using childcare regularly for a year or more</td>
8484

8585
<td class="link-right">
8686
<a href="/childcare-costs-for-tax-credits/y/no?previous_response=regularly_more_than_year">

test/artefacts/childcare-costs-for-tax-credits/no/regularly_more_than_year/yes/fortnightly.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3 class="previous-answers-title">
8080
<tr class="section">
8181
<td class="previous-question-title">How often do you use childcare?</td>
8282
<td class="previous-question-body">
83-
I&#39;ve been using childcare regularly for a year or more</td>
83+
I've been using childcare regularly for a year or more</td>
8484

8585
<td class="link-right">
8686
<a href="/childcare-costs-for-tax-credits/y/no?previous_response=regularly_more_than_year">

test/artefacts/childcare-costs-for-tax-credits/no/regularly_more_than_year/yes/yearly.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3 class="previous-answers-title">
8080
<tr class="section">
8181
<td class="previous-question-title">How often do you use childcare?</td>
8282
<td class="previous-question-body">
83-
I&#39;ve been using childcare regularly for a year or more</td>
83+
I've been using childcare regularly for a year or more</td>
8484

8585
<td class="link-right">
8686
<a href="/childcare-costs-for-tax-credits/y/no?previous_response=regularly_more_than_year">

test/artefacts/childcare-costs-for-tax-credits/yes/yes/monthly_same_amount.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1>
3232
<div class="current-question" id="current-question">
3333
<div class="question">
3434
<h2>
35-
What&#39;s the new monthly cost of your childcare?
35+
What's the new monthly cost of your childcare?
3636
</h2>
3737
<div class="question-body">
3838

test/artefacts/childcare-costs-for-tax-credits/yes/yes/monthly_same_amount/43.3.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ <h3 class="previous-answers-title">
105105

106106

107107
<tr class="section">
108-
<td class="previous-question-title">What&#39;s the new monthly cost of your childcare?</td>
108+
<td class="previous-question-title">What's the new monthly cost of your childcare?</td>
109109
<td class="previous-question-body">
110110
£43.30</td>
111111

112112
<td class="link-right">
113113
<a href="/childcare-costs-for-tax-credits/y/yes/yes/monthly_same_amount?previous_response=43.3">
114-
Change<span class="visuallyhidden"> answer to "What&#39;s the new monthly cost of your childcare?"</span>
114+
Change<span class="visuallyhidden"> answer to "What's the new monthly cost of your childcare?"</span>
115115
</a> </td>
116116
</tr>
117117

0 commit comments

Comments
 (0)