@@ -33,18 +33,21 @@ type Props = {
3333 * Refers to the AB test with name: fronts-and-curation-loop-click-through
3434 */
3535 shouldRaiseZIndexForAbTest : boolean ;
36+ headlineTestUuid ?: string ;
3637} ;
3738
3839const InternalLink = ( {
3940 linkTo,
4041 headlineText,
4142 dataLinkName,
4243 shouldRaiseZIndexForAbTest,
44+ headlineTestUuid,
4345} : {
4446 linkTo : string ;
4547 headlineText : string ;
4648 dataLinkName ?: string ;
4749 shouldRaiseZIndexForAbTest : boolean ;
50+ headlineTestUuid ?: string ;
4851} ) => {
4952 return (
5053 < a
@@ -54,6 +57,9 @@ const InternalLink = ({
5457 shouldRaiseZIndexForAbTest ? abTestZIndexStyles : zIndexStyles ,
5558 ] }
5659 data-link-name = { dataLinkName }
60+ { ...( headlineTestUuid != undefined && {
61+ 'data-fronts-test-uuid' : headlineTestUuid ,
62+ } ) }
5763 aria-label = { headlineText }
5864 />
5965 ) ;
@@ -64,11 +70,13 @@ const ExternalLink = ({
6470 headlineText,
6571 dataLinkName,
6672 shouldRaiseZIndexForAbTest,
73+ headlineTestUuid,
6774} : {
6875 linkTo : string ;
6976 headlineText : string ;
7077 dataLinkName ?: string ;
7178 shouldRaiseZIndexForAbTest : boolean ;
79+ headlineTestUuid ?: string ;
7280} ) => {
7381 return (
7482 < a
@@ -78,6 +86,9 @@ const ExternalLink = ({
7886 shouldRaiseZIndexForAbTest ? abTestZIndexStyles : zIndexStyles ,
7987 ] }
8088 data-link-name = { dataLinkName }
89+ { ...( headlineTestUuid != undefined && {
90+ 'data-fronts-test-uuid' : headlineTestUuid ,
91+ } ) }
8192 aria-label = { headlineText + ' (opens in new tab)' }
8293 target = "_blank"
8394 rel = "noreferrer"
@@ -92,6 +103,7 @@ export const CardLink = ({
92103 isExternalLink,
93104 isLoopAndInLoopClickTest,
94105 shouldRaiseZIndexForAbTest,
106+ headlineTestUuid,
95107} : Props ) => {
96108 /**
97109 * If we are in the loop click through test, we add a unique string to the data link name
@@ -109,6 +121,7 @@ export const CardLink = ({
109121 headlineText = { headlineText }
110122 dataLinkName = { clickThroughLinkName }
111123 shouldRaiseZIndexForAbTest = { shouldRaiseZIndexForAbTest }
124+ headlineTestUuid = { headlineTestUuid }
112125 />
113126 ) }
114127 { ! isExternalLink && (
@@ -117,6 +130,7 @@ export const CardLink = ({
117130 headlineText = { headlineText }
118131 dataLinkName = { clickThroughLinkName }
119132 shouldRaiseZIndexForAbTest = { shouldRaiseZIndexForAbTest }
133+ headlineTestUuid = { headlineTestUuid }
120134 />
121135 ) }
122136 </ >
0 commit comments