Skip to content

Added unit and e2e tests for HelpSection.vue component #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 3, 2020
Prev Previous commit
Next Next commit
Modified clickHandler method
  • Loading branch information
hemanth-hk committed Mar 23, 2020
commit e13b881ff223ab3186eefa2f9fcee63573e5903f
3 changes: 2 additions & 1 deletion src/components/HelpSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,12 @@ export default {
clickHandler(modalNumber) {
this.modals[modalNumber].status = true
if (process.env.NODE_ENV === 'production') {
this.$ga.event({
const Tracked = this.$ga.event({
eventCategory: 'HelpSection',
eventAction: 'clicked',
eventLabel: this.modals[modalNumber].title
})
return Tracked
}
}
}
Expand Down