Skip to content

Commit

Permalink
Add tracking domain to service sign in form
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Laing committed Oct 16, 2018
1 parent 71aca4d commit 98246f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<%
data_attrs = { module: "track-radio-group" }
data_attrs["tracking-code"] = @content_item.tracking_code if @content_item.tracking_code
data_attrs["tracking-domain"] = @content_item.tracking_domain if @content_item.tracking_domain
data_attrs["tracking-name"] = @content_item.tracking_name if @content_item.tracking_name
%>
<%= form_tag({controller: 'content_items', action: 'service_sign_in_options'},
Expand Down
1 change: 1 addition & 0 deletions test/integration/service_sign_in/choose_sign_in_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ChooseSignInTest < ActionDispatch::IntegrationTest
assert page.has_css?('.gem-c-back-link[href="/log-in-file-self-assessment-tax-return"]', text: 'Back')
assert page.has_css?('form[data-module="track-radio-group"]')
assert page.has_css?("form[data-tracking-code='UA-xxxxxx']")
assert page.has_css?("form[data-tracking-domain='tax.service.gov.uk']")
assert page.has_css?("form[data-tracking-name='somethingClicky']")

within "#content form" do
Expand Down

0 comments on commit 98246f1

Please sign in to comment.