@@ -6,6 +6,7 @@ const { SCROLLABLE_NAVIGATION, DROPDOWN_NAVIGATION } = COMPONENTS;
6
6
export const assertScrollableNavigationComponentView = ( {
7
7
pageIdentifier,
8
8
contentType,
9
+ componentTrackingContentType,
9
10
useReverb,
10
11
} ) => {
11
12
it ( 'should send a view event for the Scrollable Navigation component' , ( ) => {
@@ -20,7 +21,7 @@ export const assertScrollableNavigationComponentView = ({
20
21
assertATIComponentViewEvent ( {
21
22
component : SCROLLABLE_NAVIGATION ,
22
23
pageIdentifier,
23
- contentType,
24
+ contentType : componentTrackingContentType || contentType ,
24
25
useReverb,
25
26
} ) ;
26
27
} ) ;
@@ -30,6 +31,7 @@ export const assertScrollableNavigationComponentView = ({
30
31
export const assertScrollableNavigationComponentClick = ( {
31
32
pageIdentifier,
32
33
contentType,
34
+ componentTrackingContentType,
33
35
useReverb,
34
36
} ) => {
35
37
it ( 'should send a click event for the Scrollable Navigation component' , ( ) => {
@@ -47,7 +49,7 @@ export const assertScrollableNavigationComponentClick = ({
47
49
assertATIComponentClickEvent ( {
48
50
component : SCROLLABLE_NAVIGATION ,
49
51
pageIdentifier,
50
- contentType,
52
+ contentType : componentTrackingContentType || contentType ,
51
53
useReverb,
52
54
} ) ;
53
55
@@ -61,6 +63,7 @@ export const assertScrollableNavigationComponentClick = ({
61
63
export const assertDropdownNavigationComponentView = ( {
62
64
pageIdentifier,
63
65
contentType,
66
+ componentTrackingContentType,
64
67
useReverb,
65
68
} ) => {
66
69
it ( 'should send a view event for the Dropdown Navigation component' , ( ) => {
@@ -74,7 +77,7 @@ export const assertDropdownNavigationComponentView = ({
74
77
assertATIComponentViewEvent ( {
75
78
component : DROPDOWN_NAVIGATION ,
76
79
pageIdentifier,
77
- contentType,
80
+ contentType : componentTrackingContentType || contentType ,
78
81
useReverb,
79
82
} ) ;
80
83
} ) ;
@@ -84,6 +87,7 @@ export const assertDropdownNavigationComponentView = ({
84
87
export const assertDropdownNavigationComponentClick = ( {
85
88
pageIdentifier,
86
89
contentType,
90
+ componentTrackingContentType,
87
91
useReverb,
88
92
} ) => {
89
93
it ( 'should send a click event for the Dropdown Navigation component' , ( ) => {
@@ -100,7 +104,7 @@ export const assertDropdownNavigationComponentClick = ({
100
104
assertATIComponentClickEvent ( {
101
105
component : DROPDOWN_NAVIGATION ,
102
106
pageIdentifier,
103
- contentType,
107
+ contentType : componentTrackingContentType || contentType ,
104
108
useReverb,
105
109
} ) ;
106
110
0 commit comments