Skip to content

Commit

Permalink
Merge pull request #1131 from alphagov/add-tracking-domain-to-service…
Browse files Browse the repository at this point in the history
…-sign-in-form

Add tracking domain to service sign in form
  • Loading branch information
steventux authored Oct 16, 2018
2 parents 71aca4d + 98246f1 commit 5e91bdc
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 5e91bdc

Please sign in to comment.