@@ -11,6 +11,7 @@ import tippy from "tippy.js";
1111import localeTexts from "../../common/locale/en-us" ;
1212import constants from "../../common/constants" ;
1313import { mergeObjects } from "../../common/utils" ;
14+ import TrackJS from "../../trackjs" ;
1415import { TypeAppSdkConfigState } from "../../common/types" ;
1516
1617/* Import node module CSS */
@@ -39,6 +40,9 @@ const ConfigScreen: React.FC = function () {
3940 useEffect ( ( ) => {
4041 ContentstackAppSdk . init ( )
4142 . then ( async ( appSdk ) => {
43+ //Adding Track.js metadata
44+ TrackJS . addMetadata ( appSdk ) ;
45+
4246 const sdkConfigData = appSdk ?. location ?. AppConfigWidget ?. installation ;
4347 if ( sdkConfigData ) {
4448 const installationDataFromSDK =
@@ -104,16 +108,16 @@ const ConfigScreen: React.FC = function () {
104108 return (
105109 < div className = "layout-container" >
106110 < div className = "page-wrapper" >
107- < form data-test-id = "cs-form" className = "config-wrapper" >
111+ < form data-testid = "cs-form" className = "config-wrapper" >
108112 < div className = "Form__item" >
109113 < div
110114 className = "Field Field--full json-field"
111- data-test-id = "cs-field"
115+ data-testid = "cs-field"
112116 >
113117 < label
114118 className = "FieldLabel"
115119 htmlFor = "isStringified"
116- data-test-id = "cs-field-label"
120+ data-testid = "cs-field-label"
117121 >
118122 { localeTexts . configFields . entrySaveRadioButton . label }
119123 < span className = "FieldLabel__required-text" >
@@ -123,12 +127,12 @@ const ConfigScreen: React.FC = function () {
123127 < div
124128 className = "tippy-wrapper"
125129 id = "help-text"
126- data-test-id = "cs-tooltip"
130+ data-testid = "cs-tooltip"
127131 >
128132 < VenusHelp />
129133 </ div >
130134 < div className = "Radio-wrapper" >
131- < label data-test-id = "cs-radio" className = "Radio label-text" >
135+ < label data-testid = "cs-radio-one " className = "Radio label-text" >
132136 < input
133137 id = "jsonObject"
134138 type = "radio"
@@ -143,7 +147,7 @@ const ConfigScreen: React.FC = function () {
143147 { localeTexts . configFields . entrySaveRadioButton . jsonObject }
144148 </ span >
145149 </ label >
146- < label data-test-id = "cs-radio" className = "Radio label-text" >
150+ < label data-testid = "cs-radio-two " className = "Radio label-text" >
147151 < input
148152 id = "stringified"
149153 type = "radio"
@@ -162,7 +166,7 @@ const ConfigScreen: React.FC = function () {
162166 </ span >
163167 </ label >
164168 </ div >
165- < p className = "InstructionText" data-test-id = "cs-instruction-text" >
169+ < p className = "InstructionText" data-testid = "cs-instruction-text" >
166170 { localeTexts . configFields . entrySaveRadioButton . instruction }
167171 </ p >
168172 </ div >
0 commit comments