diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 15:40:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 15:40:28 +0000 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /spec/frontend/google_tag_manager | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) | |
download | gitlab-ce-b595cb0c1dec83de5bdee18284abe86614bed33b.tar.gz |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'spec/frontend/google_tag_manager')
-rw-r--r-- | spec/frontend/google_tag_manager/index_spec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/frontend/google_tag_manager/index_spec.js b/spec/frontend/google_tag_manager/index_spec.js index 50811f43fc3..6a7eb1fd9f1 100644 --- a/spec/frontend/google_tag_manager/index_spec.js +++ b/spec/frontend/google_tag_manager/index_spec.js @@ -10,6 +10,7 @@ import { trackSaasTrialGroup, trackSaasTrialProject, trackSaasTrialGetStarted, + trackTrialAcceptTerms, trackCheckout, trackTransaction, trackAddToCartUsageTab, @@ -255,6 +256,16 @@ describe('~/google_tag_manager/index', () => { expect(logError).not.toHaveBeenCalled(); }); + it('when trackTrialAcceptTerms is invoked', () => { + expect(spy).not.toHaveBeenCalled(); + + trackTrialAcceptTerms(); + + expect(spy).toHaveBeenCalledTimes(1); + expect(spy).toHaveBeenCalledWith({ event: 'saasTrialAcceptTerms' }); + expect(logError).not.toHaveBeenCalled(); + }); + describe('when trackCheckout is invoked', () => { it('with selectedPlan: 2c92a00d76f0d5060176f2fb0a5029ff', () => { expect(spy).not.toHaveBeenCalled(); |