Skip to content

Commit 1f9e5bd

Browse files
floehopperchrisroos
authored andcommitted
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/student-finance-calculator -name '*.html' -print0 | xargs -0 sed -i .bak "s/'/'/g" $ git clean -fd test/artefacts/student-finance-calculator/**/*.bak
1 parent 44b4034 commit 1f9e5bd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/artefacts/student-finance-calculator/2015-2016/uk-full-time/6000.0/at-home.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ <h1>
3232
<div class="current-question" id="current-question">
3333
<div class="question">
3434
<h2>
35-
What&#39;s your annual household income?
35+
What's your annual household income?
3636
</h2>
3737
<div class="question-body">
3838

3939

40-
<p class="hint">This is your parents’ or partner’s gross (pre-tax) income plus your own. It affects how much help you&#39;ll get with living costs.</p>
40+
<p class="hint">This is your parents’ or partner’s gross (pre-tax) income plus your own. It affects how much help you'll get with living costs.</p>
4141

4242
<div class="">
4343

test/artefacts/student-finance-calculator/2015-2016/uk-full-time/6000.0/at-home/100000.0/children-under-17,dependant-adult,has-disability,low-income.html

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

140140

141141
<tr class="section">
142-
<td class="previous-question-title">What&#39;s your annual household income?</td>
142+
<td class="previous-question-title">What's your annual household income?</td>
143143
<td class="previous-question-body">
144144
£100,000</td>
145145

146146
<td class="link-right">
147147
<a href="/student-finance-calculator/y/2015-2016/uk-full-time/6000.0/at-home?previous_response=100000.0">
148-
Change<span class="visuallyhidden"> answer to "What&#39;s your annual household income?"</span>
148+
Change<span class="visuallyhidden"> answer to "What's your annual household income?"</span>
149149
</a> </td>
150150
</tr>
151151

test/artefacts/student-finance-calculator/2015-2016/uk-full-time/6000.0/at-home/100000.html

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

146146

147147
<tr class="section">
148-
<td class="previous-question-title">What&#39;s your annual household income?</td>
148+
<td class="previous-question-title">What's your annual household income?</td>
149149
<td class="previous-question-body">
150150
£100,000</td>
151151

152152
<td class="link-right">
153153
<a href="/student-finance-calculator/y/2015-2016/uk-full-time/6000.0/at-home?previous_response=100000.0">
154-
Change<span class="visuallyhidden"> answer to "What&#39;s your annual household income?"</span>
154+
Change<span class="visuallyhidden"> answer to "What's your annual household income?"</span>
155155
</a> </td>
156156
</tr>
157157

0 commit comments

Comments
 (0)