Skip to content

Commit

Permalink
Update completed page
Browse files Browse the repository at this point in the history
Change topic styling from topic in inverted commas to topic with emphasis style but no inverted commas
  • Loading branch information
koetsier committed Jan 3, 2020
1 parent a03ad7b commit 2c83c12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/subscription_authentication/complete.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
} %>

<p class="govuk-body">
<%= t("subscription_authentication.complete.summary.#{@frequency}", title: @title) %>
<%= t("subscription_authentication.complete.summary.#{@frequency}_html", title: @title) %>
</p>
</div>
</div>
6 changes: 3 additions & 3 deletions config/locales/subscription_authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ en:
browser_title: "Subscription created successfully"
title: "You’ve subscribed successfully"
summary:
immediately: "You’ll get an email each time there’s an update to%{title}"
daily: "You’ll get an email each day there’s been an update to%{title}"
weekly: "You’ll get one email per week if there’s been an update to%{title}"
immediately_html: "You’ll get an email each time there’s an update to: <strong>%{title}</strong>"
daily_html: "You’ll get an email each day there’s been an update to: <strong>%{title}</strong>"
weekly_html: "You’ll get one email per week if there’s been an update to: <strong>%{title}</strong>"
4 changes: 2 additions & 2 deletions spec/features/subscribe_opt_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def when_i_click_on_the_confirmation_link
def then_i_see_i_am_subscribed
expect(@request).to have_been_requested
expect(page).to have_content(I18n.t!("subscription_authentication.complete.title"))
description = I18n.t!("subscription_authentication.complete.summary.#{@frequency}", title: @title)
expect(page).to have_content(description)
description = I18n.t!("subscription_authentication.complete.summary.#{@frequency}_html", title: @title)
expect(page).to have_content(ActionController::Base.helpers.strip_tags(description))
end
end

0 comments on commit 2c83c12

Please sign in to comment.