Tracking end-to-end test
alecgibson opened this issue · 1 comments
alecgibson commented
It would be good to have a full end-to-end integration test of Google Analytics click tracking (which lives in "Static")
We currently have unit tests that cover:
- Tracking attributes are rendered by Ruby
- JS tracking event is fired from a tracked element
However, there's a disconnect in that nothing checks that the Ruby-rendered tracking events have the correct module name (ie Ruby renders an element, and clicking on that element fires a tracking event).
For more context, see: alphagov/static#875
36degrees commented
I believe this issue is specific to GOV.UK (Publishing) as Frontend Toolkit doesn't really have a concept of 'end-to-end'.
Either way, following the launch of the GOV.UK Design System, GOV.UK Frontend Toolkit will now only get major bug fixes and security patches, so I'm going to close this.