@thoughtspot/visual-embed-sdk 1.50.1 → 1.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/css-variables.d.ts +36 -0
  3. package/cjs/src/css-variables.d.ts.map +1 -1
  4. package/cjs/src/embed/app.d.ts +106 -14
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +47 -36
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +318 -149
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/conversation.d.ts +204 -1
  11. package/cjs/src/embed/conversation.d.ts.map +1 -1
  12. package/cjs/src/embed/conversation.js +19 -15
  13. package/cjs/src/embed/conversation.js.map +1 -1
  14. package/cjs/src/embed/conversation.spec.js +198 -17
  15. package/cjs/src/embed/conversation.spec.js.map +1 -1
  16. package/cjs/src/embed/events.spec.js +42 -0
  17. package/cjs/src/embed/events.spec.js.map +1 -1
  18. package/cjs/src/embed/host-events.spec.js +45 -0
  19. package/cjs/src/embed/host-events.spec.js.map +1 -1
  20. package/cjs/src/embed/hostEventClient/contracts.d.ts +15 -0
  21. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  22. package/cjs/src/embed/hostEventClient/contracts.js +1 -0
  23. package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
  24. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  25. package/cjs/src/embed/hostEventClient/host-event-client.js +1 -0
  26. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  27. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +9 -0
  28. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  29. package/cjs/src/embed/liveboard.d.ts +36 -1
  30. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  31. package/cjs/src/embed/liveboard.js +26 -6
  32. package/cjs/src/embed/liveboard.js.map +1 -1
  33. package/cjs/src/embed/liveboard.spec.js +83 -2
  34. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  35. package/cjs/src/embed/spotter-utils.d.ts +8 -1
  36. package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
  37. package/cjs/src/embed/spotter-utils.js +14 -1
  38. package/cjs/src/embed/spotter-utils.js.map +1 -1
  39. package/cjs/src/embed/spotter-utils.spec.js +61 -0
  40. package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
  41. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  42. package/cjs/src/embed/ts-embed.js +15 -0
  43. package/cjs/src/embed/ts-embed.js.map +1 -1
  44. package/cjs/src/index.d.ts +2 -2
  45. package/cjs/src/index.d.ts.map +1 -1
  46. package/cjs/src/index.js.map +1 -1
  47. package/cjs/src/mixpanel-service.d.ts +4 -0
  48. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  49. package/cjs/src/mixpanel-service.js +4 -0
  50. package/cjs/src/mixpanel-service.js.map +1 -1
  51. package/cjs/src/types.d.ts +460 -15
  52. package/cjs/src/types.d.ts.map +1 -1
  53. package/cjs/src/types.js +428 -8
  54. package/cjs/src/types.js.map +1 -1
  55. package/dist/{index-fCne7kmU.js → index-aBzH5ZwF.js} +1 -1
  56. package/dist/src/css-variables.d.ts +36 -0
  57. package/dist/src/css-variables.d.ts.map +1 -1
  58. package/dist/src/embed/app.d.ts +106 -14
  59. package/dist/src/embed/app.d.ts.map +1 -1
  60. package/dist/src/embed/conversation.d.ts +204 -1
  61. package/dist/src/embed/conversation.d.ts.map +1 -1
  62. package/dist/src/embed/hostEventClient/contracts.d.ts +15 -0
  63. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  64. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  65. package/dist/src/embed/liveboard.d.ts +36 -1
  66. package/dist/src/embed/liveboard.d.ts.map +1 -1
  67. package/dist/src/embed/spotter-utils.d.ts +8 -1
  68. package/dist/src/embed/spotter-utils.d.ts.map +1 -1
  69. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  70. package/dist/src/index.d.ts +2 -2
  71. package/dist/src/index.d.ts.map +1 -1
  72. package/dist/src/mixpanel-service.d.ts +4 -0
  73. package/dist/src/mixpanel-service.d.ts.map +1 -1
  74. package/dist/src/types.d.ts +460 -15
  75. package/dist/src/types.d.ts.map +1 -1
  76. package/dist/tsembed-react.es.js +558 -69
  77. package/dist/tsembed-react.js +557 -68
  78. package/dist/tsembed.es.js +556 -68
  79. package/dist/tsembed.js +555 -67
  80. package/dist/visual-embed-sdk-react-full.d.ts +845 -27
  81. package/dist/visual-embed-sdk-react.d.ts +851 -29
  82. package/dist/visual-embed-sdk.d.ts +855 -29
  83. package/lib/package.json +1 -1
  84. package/lib/src/css-variables.d.ts +36 -0
  85. package/lib/src/css-variables.d.ts.map +1 -1
  86. package/lib/src/embed/app.d.ts +106 -14
  87. package/lib/src/embed/app.d.ts.map +1 -1
  88. package/lib/src/embed/app.js +48 -37
  89. package/lib/src/embed/app.js.map +1 -1
  90. package/lib/src/embed/app.spec.js +319 -150
  91. package/lib/src/embed/app.spec.js.map +1 -1
  92. package/lib/src/embed/conversation.d.ts +204 -1
  93. package/lib/src/embed/conversation.d.ts.map +1 -1
  94. package/lib/src/embed/conversation.js +21 -17
  95. package/lib/src/embed/conversation.js.map +1 -1
  96. package/lib/src/embed/conversation.spec.js +198 -17
  97. package/lib/src/embed/conversation.spec.js.map +1 -1
  98. package/lib/src/embed/events.spec.js +42 -0
  99. package/lib/src/embed/events.spec.js.map +1 -1
  100. package/lib/src/embed/host-events.spec.js +45 -0
  101. package/lib/src/embed/host-events.spec.js.map +1 -1
  102. package/lib/src/embed/hostEventClient/contracts.d.ts +15 -0
  103. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  104. package/lib/src/embed/hostEventClient/contracts.js +1 -0
  105. package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
  106. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  107. package/lib/src/embed/hostEventClient/host-event-client.js +1 -0
  108. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  109. package/lib/src/embed/hostEventClient/host-event-client.spec.js +9 -0
  110. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  111. package/lib/src/embed/liveboard.d.ts +36 -1
  112. package/lib/src/embed/liveboard.d.ts.map +1 -1
  113. package/lib/src/embed/liveboard.js +26 -6
  114. package/lib/src/embed/liveboard.js.map +1 -1
  115. package/lib/src/embed/liveboard.spec.js +83 -2
  116. package/lib/src/embed/liveboard.spec.js.map +1 -1
  117. package/lib/src/embed/spotter-utils.d.ts +8 -1
  118. package/lib/src/embed/spotter-utils.d.ts.map +1 -1
  119. package/lib/src/embed/spotter-utils.js +12 -0
  120. package/lib/src/embed/spotter-utils.js.map +1 -1
  121. package/lib/src/embed/spotter-utils.spec.js +62 -1
  122. package/lib/src/embed/spotter-utils.spec.js.map +1 -1
  123. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  124. package/lib/src/embed/ts-embed.js +15 -0
  125. package/lib/src/embed/ts-embed.js.map +1 -1
  126. package/lib/src/index.d.ts +2 -2
  127. package/lib/src/index.d.ts.map +1 -1
  128. package/lib/src/index.js.map +1 -1
  129. package/lib/src/mixpanel-service.d.ts +4 -0
  130. package/lib/src/mixpanel-service.d.ts.map +1 -1
  131. package/lib/src/mixpanel-service.js +4 -0
  132. package/lib/src/mixpanel-service.js.map +1 -1
  133. package/lib/src/types.d.ts +460 -15
  134. package/lib/src/types.d.ts.map +1 -1
  135. package/lib/src/types.js +428 -8
  136. package/lib/src/types.js.map +1 -1
  137. package/lib/src/visual-embed-sdk.d.ts +855 -29
  138. package/package.json +1 -1
  139. package/src/css-variables.ts +45 -0
  140. package/src/embed/app.spec.ts +390 -183
  141. package/src/embed/app.ts +172 -65
  142. package/src/embed/conversation.spec.ts +243 -20
  143. package/src/embed/conversation.ts +233 -17
  144. package/src/embed/events.spec.ts +52 -0
  145. package/src/embed/host-events.spec.ts +70 -0
  146. package/src/embed/hostEventClient/contracts.ts +16 -0
  147. package/src/embed/hostEventClient/host-event-client.spec.ts +12 -0
  148. package/src/embed/hostEventClient/host-event-client.ts +1 -0
  149. package/src/embed/liveboard.spec.ts +108 -2
  150. package/src/embed/liveboard.ts +76 -14
  151. package/src/embed/spotter-utils.spec.ts +68 -1
  152. package/src/embed/spotter-utils.ts +16 -1
  153. package/src/embed/ts-embed.ts +18 -0
  154. package/src/index.ts +2 -1
  155. package/src/mixpanel-service.ts +4 -0
  156. package/src/types.ts +462 -14
@@ -101,7 +101,7 @@ describe('App embed tests', () => {
101
101
  const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), defaultViewConfig);
102
102
  appEmbed.render();
103
103
  await (0, test_utils_1.executeAfterWait)(() => {
104
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
104
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
105
105
  });
106
106
  });
107
107
  test('should hide the primary nav bar', async () => {
@@ -111,7 +111,7 @@ describe('App embed tests', () => {
111
111
  });
112
112
  appEmbed.render();
113
113
  await (0, test_utils_1.executeAfterWait)(() => {
114
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
114
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
115
115
  });
116
116
  });
117
117
  test('should hide the help and profile buttons from nav bar', async () => {
@@ -121,7 +121,7 @@ describe('App embed tests', () => {
121
121
  });
122
122
  appEmbed.render();
123
123
  await (0, test_utils_1.executeAfterWait)(() => {
124
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
124
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
125
125
  });
126
126
  });
127
127
  test('should hide the application switcher button from nav bar', async () => {
@@ -131,7 +131,7 @@ describe('App embed tests', () => {
131
131
  });
132
132
  appEmbed.render();
133
133
  await (0, test_utils_1.executeAfterWait)(() => {
134
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&applicationSwitcherHidden=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
134
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&applicationSwitcherHidden=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
135
135
  });
136
136
  });
137
137
  test('should hide the org switcher button from nav bar', async () => {
@@ -141,7 +141,7 @@ describe('App embed tests', () => {
141
141
  });
142
142
  appEmbed.render();
143
143
  await (0, test_utils_1.executeAfterWait)(() => {
144
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&orgSwitcherHidden=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
144
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&orgSwitcherHidden=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
145
145
  });
146
146
  });
147
147
  describe('should render the correct routes for pages', () => {
@@ -167,7 +167,7 @@ describe('App embed tests', () => {
167
167
  });
168
168
  appEmbed.render();
169
169
  await (0, test_utils_1.executeAfterWait)(() => {
170
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/${route}`);
170
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/${route}`);
171
171
  cleanUp();
172
172
  });
173
173
  });
@@ -195,7 +195,7 @@ describe('App embed tests', () => {
195
195
  });
196
196
  appEmbed.render();
197
197
  await (0, test_utils_1.executeAfterWait)(() => {
198
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/${route}`);
198
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/${route}`);
199
199
  cleanUp();
200
200
  });
201
201
  });
@@ -208,7 +208,7 @@ describe('App embed tests', () => {
208
208
  });
209
209
  appEmbed.render();
210
210
  await (0, test_utils_1.executeAfterWait)(() => {
211
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/foo/bar`);
211
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/foo/bar`);
212
212
  });
213
213
  });
214
214
  test('should apply runtime filters', async () => {
@@ -226,7 +226,7 @@ describe('App embed tests', () => {
226
226
  });
227
227
  appEmbed.render();
228
228
  await (0, test_utils_1.executeAfterWait)(() => {
229
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false&col1=sales&op1=EQ&val1=1000${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
229
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false&col1=sales&op1=EQ&val1=1000&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
230
230
  });
231
231
  });
232
232
  test('should not append runtime filters in URL if excludeRuntimeFiltersfromURL is true', async () => {
@@ -244,7 +244,7 @@ describe('App embed tests', () => {
244
244
  });
245
245
  appEmbed.render();
246
246
  await (0, test_utils_1.executeAfterWait)(() => {
247
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
247
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
248
248
  });
249
249
  });
250
250
  test('should append runtime filters in URL if excludeRuntimeFiltersfromURL is undefined', async () => {
@@ -263,7 +263,7 @@ describe('App embed tests', () => {
263
263
  appEmbed.render();
264
264
  const runtimeFilter = 'col1=sales&op1=EQ&val1=1000';
265
265
  await (0, test_utils_1.executeAfterWait)(() => {
266
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}&${runtimeFilter}#/home`);
266
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}&${runtimeFilter}#/home`);
267
267
  });
268
268
  });
269
269
  test('should disable and hide actions', async () => {
@@ -276,7 +276,7 @@ describe('App embed tests', () => {
276
276
  });
277
277
  appEmbed.render();
278
278
  await (0, test_utils_1.executeAfterWait)(() => {
279
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false&${test_utils_1.defaultParamsWithoutHiddenActions}&disableAction=[%22save%22,%22update%22]&disableHint=Access%20denied&hideAction=[%22${types_1.Action.ReportError}%22,%22download%22]${defaultParamsPost}#/home`);
279
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=false&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3&${test_utils_1.defaultParamsWithoutHiddenActions}&disableAction=[%22save%22,%22update%22]&disableHint=Access%20denied&hideAction=[%22${types_1.Action.ReportError}%22,%22download%22]${defaultParamsPost}#/home`);
280
280
  });
281
281
  });
282
282
  test('should set enable2ColumnLayout to true in url', async () => {
@@ -286,7 +286,7 @@ describe('App embed tests', () => {
286
286
  });
287
287
  appEmbed.render();
288
288
  await (0, test_utils_1.executeAfterWait)(() => {
289
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enable2ColumnLayout=true${defaultParamsPost}#/home`);
289
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enable2ColumnLayout=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
290
290
  });
291
291
  });
292
292
  test('should set coverAndFilterOptionInPDF to false in url', async () => {
@@ -296,7 +296,7 @@ describe('App embed tests', () => {
296
296
  });
297
297
  appEmbed.render();
298
298
  await (0, test_utils_1.executeAfterWait)(() => {
299
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&arePdfCoverFilterPageCheckboxesEnabled=false${defaultParamsPost}#/home`);
299
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&arePdfCoverFilterPageCheckboxesEnabled=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
300
300
  });
301
301
  });
302
302
  test('should set isLiveboardStylingAndGroupingEnabled to true in url (deprecated, use isLiveboardMasterpiecesEnabled)', async () => {
@@ -306,7 +306,7 @@ describe('App embed tests', () => {
306
306
  });
307
307
  appEmbed.render();
308
308
  await (0, test_utils_1.executeAfterWait)(() => {
309
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLiveboardStylingAndGroupingEnabled=true${defaultParamsPost}#/home`);
309
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLiveboardStylingAndGroupingEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
310
310
  });
311
311
  });
312
312
  test('should set isThisPeriodInDateFiltersEnabled to true in url', async () => {
@@ -316,7 +316,7 @@ describe('App embed tests', () => {
316
316
  });
317
317
  appEmbed.render();
318
318
  await (0, test_utils_1.executeAfterWait)(() => {
319
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isThisPeriodInDateFiltersEnabled=true${defaultParamsPost}#/home`);
319
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isThisPeriodInDateFiltersEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
320
320
  });
321
321
  });
322
322
  test('should set enableHomepageAnnouncement to true in url', async () => {
@@ -326,14 +326,14 @@ describe('App embed tests', () => {
326
326
  });
327
327
  appEmbed.render();
328
328
  await (0, test_utils_1.executeAfterWait)(() => {
329
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableHomepageAnnouncement=true${defaultParamsPost}#/home`);
329
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableHomepageAnnouncement=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
330
330
  });
331
331
  });
332
332
  test('should set enableHomepageAnnouncement to false in url when not provided in AppViewConfig', async () => {
333
333
  const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), defaultViewConfig);
334
334
  appEmbed.render();
335
335
  await (0, test_utils_1.executeAfterWait)(() => {
336
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableHomepageAnnouncement=false${defaultParamsPost}#/home`);
336
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableHomepageAnnouncement=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
337
337
  });
338
338
  });
339
339
  test('should set isPNGInScheduledEmailsEnabled to true in url', async () => {
@@ -343,7 +343,7 @@ describe('App embed tests', () => {
343
343
  });
344
344
  appEmbed.render();
345
345
  await (0, test_utils_1.executeAfterWait)(() => {
346
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isPNGInScheduledEmailsEnabled=true${defaultParamsPost}#/home`);
346
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isPNGInScheduledEmailsEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
347
347
  });
348
348
  });
349
349
  test('should set isWYSIWYGLiveboardPDFEnabled to true in url', async () => {
@@ -353,16 +353,16 @@ describe('App embed tests', () => {
353
353
  });
354
354
  appEmbed.render();
355
355
  await (0, test_utils_1.executeAfterWait)(() => {
356
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isWYSIWYGLiveboardPDFEnabled=true${defaultParamsPost}#/home`);
356
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isWYSIWYGLiveboardPDFEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
357
357
  });
358
358
  });
359
- test('should disable isWYSIWYGLiveboardPDFEnabled by default in url', async () => {
359
+ test('should not set isWYSIWYGLiveboardPDFEnabled in url by default', async () => {
360
360
  const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
361
361
  ...defaultViewConfig,
362
362
  });
363
363
  appEmbed.render();
364
364
  await (0, test_utils_1.executeAfterWait)(() => {
365
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isWYSIWYGLiveboardPDFEnabled=false${defaultParamsPost}#/home`);
365
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
366
366
  });
367
367
  });
368
368
  test('should set isLinkParametersEnabled to true in url', async () => {
@@ -372,7 +372,7 @@ describe('App embed tests', () => {
372
372
  });
373
373
  appEmbed.render();
374
374
  await (0, test_utils_1.executeAfterWait)(() => {
375
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLinkParametersEnabled=true${defaultParamsPost}#/home`);
375
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLinkParametersEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
376
376
  });
377
377
  });
378
378
  test('should set isLinkParametersEnabled to false in url', async () => {
@@ -382,7 +382,7 @@ describe('App embed tests', () => {
382
382
  });
383
383
  appEmbed.render();
384
384
  await (0, test_utils_1.executeAfterWait)(() => {
385
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLinkParametersEnabled=false${defaultParamsPost}#/home`);
385
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLinkParametersEnabled=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
386
386
  });
387
387
  });
388
388
  test('Should add homepageVersion=v4 and updatedSpotterChatPrompt=true when homePage is Focused to the iframe src', async () => {
@@ -391,7 +391,7 @@ describe('App embed tests', () => {
391
391
  discoveryExperience: {
392
392
  homePage: app_1.HomePage.Focused,
393
393
  },
394
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&navigationVersion=v2&homepageVersion=v4&updatedSpotterChatPrompt=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
394
+ }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v4&updatedSpotterChatPrompt=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
395
395
  });
396
396
  test('Should respect explicit updatedSpotterChatPrompt=false even when homePage is Focused', async () => {
397
397
  await testUrlParams({
@@ -400,7 +400,7 @@ describe('App embed tests', () => {
400
400
  homePage: app_1.HomePage.Focused,
401
401
  },
402
402
  updatedSpotterChatPrompt: false,
403
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&navigationVersion=v2&homepageVersion=v4&updatedSpotterChatPrompt=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
403
+ }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v4&updatedSpotterChatPrompt=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
404
404
  });
405
405
  test('should set isLiveboardXLSXCSVDownloadEnabled to true in url', async () => {
406
406
  const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
@@ -409,7 +409,7 @@ describe('App embed tests', () => {
409
409
  });
410
410
  appEmbed.render();
411
411
  await (0, test_utils_1.executeAfterWait)(() => {
412
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLiveboardXLSXCSVDownloadEnabled=true${defaultParamsPost}#/home`);
412
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLiveboardXLSXCSVDownloadEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
413
413
  });
414
414
  });
415
415
  test('should set updatedSpotterChatPrompt to true in url', async () => {
@@ -419,7 +419,7 @@ describe('App embed tests', () => {
419
419
  });
420
420
  appEmbed.render();
421
421
  await (0, test_utils_1.executeAfterWait)(() => {
422
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&updatedSpotterChatPrompt=true${defaultParamsPost}#/home`);
422
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&updatedSpotterChatPrompt=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
423
423
  });
424
424
  });
425
425
  test('should set updatedSpotterChatPrompt to false in url', async () => {
@@ -429,7 +429,27 @@ describe('App embed tests', () => {
429
429
  });
430
430
  appEmbed.render();
431
431
  await (0, test_utils_1.executeAfterWait)(() => {
432
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&updatedSpotterChatPrompt=false${defaultParamsPost}#/home`);
432
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&updatedSpotterChatPrompt=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
433
+ });
434
+ });
435
+ test('should set showSpotterRadiance to true in url', async () => {
436
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
437
+ ...defaultViewConfig,
438
+ showSpotterRadiance: true,
439
+ });
440
+ appEmbed.render();
441
+ await (0, test_utils_1.executeAfterWait)(() => {
442
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&showSpotterRadiance=true${defaultParamsPost}#/home`);
443
+ });
444
+ });
445
+ test('should set showSpotterRadiance to false in url', async () => {
446
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
447
+ ...defaultViewConfig,
448
+ showSpotterRadiance: false,
449
+ });
450
+ appEmbed.render();
451
+ await (0, test_utils_1.executeAfterWait)(() => {
452
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&showSpotterRadiance=false${defaultParamsPost}#/home`);
433
453
  });
434
454
  });
435
455
  test('should set defaultQueryMode to research in url', async () => {
@@ -460,7 +480,36 @@ describe('App embed tests', () => {
460
480
  });
461
481
  appEmbed.render();
462
482
  await (0, test_utils_1.executeAfterWait)(() => {
463
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&hideToolResponseCardBranding=true${defaultParamsPost}#/home`);
483
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&hideToolResponseCardBranding=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
484
+ });
485
+ });
486
+ test('should set spotterDataSources to a list of Model GUIDs in url', async () => {
487
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
488
+ ...defaultViewConfig,
489
+ spotterDataSources: ['model-guid-123', 'model-guid-456'],
490
+ });
491
+ appEmbed.render();
492
+ await (0, test_utils_1.executeAfterWait)(() => {
493
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&spotterDataSources=${encodeURIComponent(JSON.stringify(['model-guid-123', 'model-guid-456']))}${defaultParamsPost}#/home`);
494
+ });
495
+ });
496
+ test('should not add spotterDataSources to url when not provided', async () => {
497
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
498
+ ...defaultViewConfig,
499
+ });
500
+ appEmbed.render();
501
+ await (0, test_utils_1.executeAfterWait)(() => {
502
+ expect((0, test_utils_1.getIFrameSrc)()).not.toContain('spotterDataSources');
503
+ });
504
+ });
505
+ test('should not add spotterDataSources to url when empty array', async () => {
506
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
507
+ ...defaultViewConfig,
508
+ spotterDataSources: [],
509
+ });
510
+ appEmbed.render();
511
+ await (0, test_utils_1.executeAfterWait)(() => {
512
+ expect((0, test_utils_1.getIFrameSrc)()).not.toContain('spotterDataSources');
464
513
  });
465
514
  });
466
515
  test('should include spotterVizConfig in APP_INIT embedParams when spotterViz is provided', async () => {
@@ -570,6 +619,83 @@ describe('App embed tests', () => {
570
619
  });
571
620
  });
572
621
  });
622
+ test('should forward spotterChatPinConfig nested in spotterSidebarConfig in APP_INIT', async () => {
623
+ const spotterChatPinConfig = {
624
+ enabled: true,
625
+ pinLabel: 'Pin to top',
626
+ unpinLabel: 'Unpin',
627
+ };
628
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
629
+ ...defaultViewConfig,
630
+ spotterSidebarConfig: {
631
+ enablePastConversationsSidebar: true,
632
+ spotterChatPinConfig,
633
+ },
634
+ });
635
+ (0, test_utils_1.mockMessageChannel)();
636
+ appEmbed.render();
637
+ const mockPort = { postMessage: jest.fn() };
638
+ await (0, test_utils_1.executeAfterWait)(() => {
639
+ (0, test_utils_1.postMessageToParent)((0, test_utils_1.getIFrameEl)().contentWindow, { type: types_1.EmbedEvent.APP_INIT, data: {} }, mockPort);
640
+ });
641
+ await (0, test_utils_1.executeAfterWait)(() => {
642
+ expect(mockPort.postMessage).toHaveBeenCalledWith({
643
+ type: types_1.EmbedEvent.APP_INIT,
644
+ data: expect.objectContaining({
645
+ embedParams: expect.objectContaining({
646
+ spotterSidebarConfig: expect.objectContaining({
647
+ spotterChatPinConfig,
648
+ }),
649
+ }),
650
+ }),
651
+ });
652
+ });
653
+ });
654
+ test('should include spotterShareConversationConfig in APP_INIT embedParams when provided', async () => {
655
+ const spotterShareConversationConfig = {
656
+ enableShareConversation: true,
657
+ spotterShareLabel: 'Share',
658
+ spotterShareModalTitle: 'Share conversation',
659
+ };
660
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
661
+ ...defaultViewConfig,
662
+ spotterShareConversationConfig,
663
+ });
664
+ (0, test_utils_1.mockMessageChannel)();
665
+ appEmbed.render();
666
+ const mockPort = { postMessage: jest.fn() };
667
+ await (0, test_utils_1.executeAfterWait)(() => {
668
+ (0, test_utils_1.postMessageToParent)((0, test_utils_1.getIFrameEl)().contentWindow, { type: types_1.EmbedEvent.APP_INIT, data: {} }, mockPort);
669
+ });
670
+ await (0, test_utils_1.executeAfterWait)(() => {
671
+ expect(mockPort.postMessage).toHaveBeenCalledWith({
672
+ type: types_1.EmbedEvent.APP_INIT,
673
+ data: expect.objectContaining({
674
+ embedParams: expect.objectContaining({
675
+ spotterShareConversationConfig,
676
+ }),
677
+ }),
678
+ });
679
+ });
680
+ });
681
+ test('should not include spotterShareConversationConfig in APP_INIT when not provided', async () => {
682
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
683
+ ...defaultViewConfig,
684
+ });
685
+ (0, test_utils_1.mockMessageChannel)();
686
+ appEmbed.render();
687
+ const mockPort = { postMessage: jest.fn() };
688
+ await (0, test_utils_1.executeAfterWait)(() => {
689
+ (0, test_utils_1.postMessageToParent)((0, test_utils_1.getIFrameEl)().contentWindow, { type: types_1.EmbedEvent.APP_INIT, data: {} }, mockPort);
690
+ });
691
+ await (0, test_utils_1.executeAfterWait)(() => {
692
+ const callArgs = mockPort.postMessage.mock.calls[0][0];
693
+ expect(callArgs.type).toBe(types_1.EmbedEvent.APP_INIT);
694
+ if (callArgs.data.embedParams) {
695
+ expect(callArgs.data.embedParams.spotterShareConversationConfig).toBeUndefined();
696
+ }
697
+ });
698
+ });
573
699
  test('should set toolResponseCardBrandingLabel in url via spotterChatConfig', async () => {
574
700
  const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
575
701
  ...defaultViewConfig,
@@ -579,7 +705,7 @@ describe('App embed tests', () => {
579
705
  });
580
706
  appEmbed.render();
581
707
  await (0, test_utils_1.executeAfterWait)(() => {
582
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&toolResponseCardBrandingLabel=MyBrand${defaultParamsPost}#/home`);
708
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&toolResponseCardBrandingLabel=MyBrand&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
583
709
  });
584
710
  });
585
711
  test('should set spotterFileUploadEnabled to true in url', async () => {
@@ -589,7 +715,7 @@ describe('App embed tests', () => {
589
715
  });
590
716
  appEmbed.render();
591
717
  await (0, test_utils_1.executeAfterWait)(() => {
592
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&spotterFileUploadEnabled=true${defaultParamsPost}#/home`);
718
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&spotterFileUploadEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
593
719
  });
594
720
  });
595
721
  test('should set enableStarterPrompts to true in url', async () => {
@@ -621,7 +747,7 @@ describe('App embed tests', () => {
621
747
  });
622
748
  appEmbed.render();
623
749
  await (0, test_utils_1.executeAfterWait)(() => {
624
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLiveboardXLSXCSVDownloadEnabled=false${defaultParamsPost}#/home`);
750
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isLiveboardXLSXCSVDownloadEnabled=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
625
751
  });
626
752
  });
627
753
  test('should set isGranularXLSXCSVSchedulesEnabled to true in url', async () => {
@@ -631,7 +757,7 @@ describe('App embed tests', () => {
631
757
  });
632
758
  appEmbed.render();
633
759
  await (0, test_utils_1.executeAfterWait)(() => {
634
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isGranularXLSXCSVSchedulesEnabled=true${defaultParamsPost}#/home`);
760
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isGranularXLSXCSVSchedulesEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
635
761
  });
636
762
  });
637
763
  test('should set isGranularXLSXCSVSchedulesEnabled to false in url', async () => {
@@ -641,7 +767,7 @@ describe('App embed tests', () => {
641
767
  });
642
768
  appEmbed.render();
643
769
  await (0, test_utils_1.executeAfterWait)(() => {
644
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isGranularXLSXCSVSchedulesEnabled=false${defaultParamsPost}#/home`);
770
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isGranularXLSXCSVSchedulesEnabled=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
645
771
  });
646
772
  });
647
773
  test('should set isCentralizedLiveboardFilterUXEnabled to true in url', async () => {
@@ -651,7 +777,7 @@ describe('App embed tests', () => {
651
777
  });
652
778
  appEmbed.render();
653
779
  await (0, test_utils_1.executeAfterWait)(() => {
654
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isCentralizedLiveboardFilterUXEnabled=true${defaultParamsPost}#/home`);
780
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isCentralizedLiveboardFilterUXEnabled=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
655
781
  });
656
782
  });
657
783
  test('should set isCentralizedLiveboardFilterUXEnabled to false in url', async () => {
@@ -661,7 +787,36 @@ describe('App embed tests', () => {
661
787
  });
662
788
  appEmbed.render();
663
789
  await (0, test_utils_1.executeAfterWait)(() => {
664
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isCentralizedLiveboardFilterUXEnabled=false${defaultParamsPost}#/home`);
790
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isCentralizedLiveboardFilterUXEnabled=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
791
+ });
792
+ });
793
+ test('should set isScopedLiveboardFilteringEnabled to true in url', async () => {
794
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
795
+ ...defaultViewConfig,
796
+ isScopedLiveboardFilteringEnabled: true,
797
+ });
798
+ appEmbed.render();
799
+ await (0, test_utils_1.executeAfterWait)(() => {
800
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isScopedLiveboardFilteringEnabled=true${defaultParamsPost}#/home`);
801
+ });
802
+ });
803
+ test('should set isScopedLiveboardFilteringEnabled to false in url', async () => {
804
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
805
+ ...defaultViewConfig,
806
+ isScopedLiveboardFilteringEnabled: false,
807
+ });
808
+ appEmbed.render();
809
+ await (0, test_utils_1.executeAfterWait)(() => {
810
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&isScopedLiveboardFilteringEnabled=false${defaultParamsPost}#/home`);
811
+ });
812
+ });
813
+ test('should not set isScopedLiveboardFilteringEnabled in url when undefined', async () => {
814
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
815
+ ...defaultViewConfig,
816
+ });
817
+ appEmbed.render();
818
+ await (0, test_utils_1.executeAfterWait)(() => {
819
+ expect((0, test_utils_1.getIFrameSrc)()).not.toContain('isScopedLiveboardFilteringEnabled');
665
820
  });
666
821
  });
667
822
  test('Should add the tag to the iframe src', async () => {
@@ -672,7 +827,7 @@ describe('App embed tests', () => {
672
827
  });
673
828
  appEmbed.render();
674
829
  await (0, test_utils_1.executeAfterWait)(() => {
675
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}&tag=Finance${defaultParamsPost}#/home`);
830
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}&tag=Finance${defaultParamsPost}#/home`);
676
831
  });
677
832
  });
678
833
  test('Should add the hideTagFilterChips true to the iframe src', async () => {
@@ -683,7 +838,7 @@ describe('App embed tests', () => {
683
838
  });
684
839
  appEmbed.render();
685
840
  await (0, test_utils_1.executeAfterWait)(() => {
686
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}&hideTagFilterChips=true${defaultParamsPost}#/home`);
841
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}&hideTagFilterChips=true${defaultParamsPost}#/home`);
687
842
  });
688
843
  });
689
844
  test('Should add the hideTagFilterChips false to the iframe src', async () => {
@@ -694,7 +849,7 @@ describe('App embed tests', () => {
694
849
  });
695
850
  appEmbed.render();
696
851
  await (0, test_utils_1.executeAfterWait)(() => {
697
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}&hideTagFilterChips=false${defaultParamsPost}#/home`);
852
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}&hideTagFilterChips=false${defaultParamsPost}#/home`);
698
853
  });
699
854
  });
700
855
  test('Should not add hideTagFilterChips if it is undefined', async () => {
@@ -704,7 +859,7 @@ describe('App embed tests', () => {
704
859
  });
705
860
  appEmbed.render();
706
861
  await (0, test_utils_1.executeAfterWait)(() => {
707
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
862
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
708
863
  });
709
864
  });
710
865
  test('Should add showMaskedFilterChip true to the iframe src', async () => {
@@ -715,7 +870,7 @@ describe('App embed tests', () => {
715
870
  });
716
871
  appEmbed.render();
717
872
  await (0, test_utils_1.executeAfterWait)(() => {
718
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showMaskedFilterChip=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
873
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showMaskedFilterChip=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
719
874
  });
720
875
  });
721
876
  test('Should add showMaskedFilterChip false to the iframe src', async () => {
@@ -726,7 +881,7 @@ describe('App embed tests', () => {
726
881
  });
727
882
  appEmbed.render();
728
883
  await (0, test_utils_1.executeAfterWait)(() => {
729
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showMaskedFilterChip=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
884
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showMaskedFilterChip=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
730
885
  });
731
886
  });
732
887
  test('Should add default showMaskedFilterChip false when not specified', async () => {
@@ -736,7 +891,7 @@ describe('App embed tests', () => {
736
891
  });
737
892
  appEmbed.render();
738
893
  await (0, test_utils_1.executeAfterWait)(() => {
739
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showMaskedFilterChip=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
894
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showMaskedFilterChip=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
740
895
  });
741
896
  });
742
897
  test('Should add isLiveboardMasterpiecesEnabled true to the iframe src', async () => {
@@ -747,7 +902,7 @@ describe('App embed tests', () => {
747
902
  });
748
903
  appEmbed.render();
749
904
  await (0, test_utils_1.executeAfterWait)(() => {
750
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardMasterpiecesEnabled=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
905
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardMasterpiecesEnabled=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
751
906
  });
752
907
  });
753
908
  test('Should add isLiveboardMasterpiecesEnabled false to the iframe src', async () => {
@@ -758,17 +913,7 @@ describe('App embed tests', () => {
758
913
  });
759
914
  appEmbed.render();
760
915
  await (0, test_utils_1.executeAfterWait)(() => {
761
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardMasterpiecesEnabled=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
762
- });
763
- });
764
- test('Should add default isLiveboardMasterpiecesEnabled false when not specified', async () => {
765
- const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
766
- ...defaultViewConfig,
767
- showPrimaryNavbar: false,
768
- });
769
- appEmbed.render();
770
- await (0, test_utils_1.executeAfterWait)(() => {
771
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardMasterpiecesEnabled=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
916
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardMasterpiecesEnabled=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
772
917
  });
773
918
  });
774
919
  test('Should add newChartsLibrary true to the iframe src', async () => {
@@ -779,7 +924,7 @@ describe('App embed tests', () => {
779
924
  });
780
925
  appEmbed.render();
781
926
  await (0, test_utils_1.executeAfterWait)(() => {
782
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&muzeChartPhase1EnabledGA=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
927
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&muzeChartPhase1EnabledGA=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
783
928
  });
784
929
  });
785
930
  test('Should add newChartsLibrary false to the iframe src', async () => {
@@ -790,7 +935,7 @@ describe('App embed tests', () => {
790
935
  });
791
936
  appEmbed.render();
792
937
  await (0, test_utils_1.executeAfterWait)(() => {
793
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&muzeChartPhase1EnabledGA=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
938
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&muzeChartPhase1EnabledGA=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
794
939
  });
795
940
  });
796
941
  test('Should not add newChartsLibrary to the iframe src when not specified', async () => {
@@ -800,7 +945,7 @@ describe('App embed tests', () => {
800
945
  });
801
946
  appEmbed.render();
802
947
  await (0, test_utils_1.executeAfterWait)(() => {
803
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
948
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
804
949
  });
805
950
  });
806
951
  test('Should add enableSearchAssist flagto the iframe src', async () => {
@@ -810,7 +955,7 @@ describe('App embed tests', () => {
810
955
  });
811
956
  appEmbed.render();
812
957
  await (0, test_utils_1.executeAfterWait)(() => {
813
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&enableSearchAssist=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
958
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&enableSearchAssist=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
814
959
  });
815
960
  });
816
961
  test('Should add enableDataPanelV2 flag to the iframe src', async () => {
@@ -820,7 +965,7 @@ describe('App embed tests', () => {
820
965
  });
821
966
  appEmbed.render();
822
967
  await (0, test_utils_1.executeAfterWait)(() => {
823
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&enableDataPanelV2=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
968
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&enableDataPanelV2=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
824
969
  });
825
970
  });
826
971
  test('Should add isLiveboardHeaderSticky flag to the iframe src', async () => {
@@ -830,7 +975,7 @@ describe('App embed tests', () => {
830
975
  });
831
976
  appEmbed.render();
832
977
  await (0, test_utils_1.executeAfterWait)(() => {
833
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderSticky=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
978
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderSticky=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
834
979
  });
835
980
  });
836
981
  test('Should add isLiveboardCompactHeaderEnabled flag to the iframe src', async () => {
@@ -840,7 +985,7 @@ describe('App embed tests', () => {
840
985
  });
841
986
  appEmbed.render();
842
987
  await (0, test_utils_1.executeAfterWait)(() => {
843
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderV2Enabled=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
988
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderV2Enabled=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
844
989
  });
845
990
  });
846
991
  test('Should add showLiveboardReverifyBanner flag to the iframe src', async () => {
@@ -850,7 +995,7 @@ describe('App embed tests', () => {
850
995
  });
851
996
  appEmbed.render();
852
997
  await (0, test_utils_1.executeAfterWait)(() => {
853
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showLiveboardReverifyBanner=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
998
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showLiveboardReverifyBanner=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
854
999
  });
855
1000
  });
856
1001
  test('Should add isUnifiedSearchExperienceEnabled flag to the iframe src', async () => {
@@ -861,7 +1006,7 @@ describe('App embed tests', () => {
861
1006
  });
862
1007
  appEmbedTrue.render();
863
1008
  await (0, test_utils_1.executeAfterWait)(() => {
864
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isUnifiedSearchExperienceEnabled=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1009
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isUnifiedSearchExperienceEnabled=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
865
1010
  });
866
1011
  appEmbedTrue.destroy();
867
1012
  // Case 2: explicitly false
@@ -871,7 +1016,7 @@ describe('App embed tests', () => {
871
1016
  });
872
1017
  appEmbedFalse.render();
873
1018
  await (0, test_utils_1.executeAfterWait)(() => {
874
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isUnifiedSearchExperienceEnabled=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1019
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isUnifiedSearchExperienceEnabled=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
875
1020
  });
876
1021
  appEmbedFalse.destroy();
877
1022
  // Case 3: not provided — defaults to false
@@ -880,7 +1025,7 @@ describe('App embed tests', () => {
880
1025
  });
881
1026
  appEmbedDefault.render();
882
1027
  await (0, test_utils_1.executeAfterWait)(() => {
883
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isUnifiedSearchExperienceEnabled=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1028
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isUnifiedSearchExperienceEnabled=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
884
1029
  });
885
1030
  });
886
1031
  test('should set newConnectionsExperience to true in url', async () => {
@@ -919,7 +1064,7 @@ describe('App embed tests', () => {
919
1064
  });
920
1065
  appEmbed.render();
921
1066
  await (0, test_utils_1.executeAfterWait)(() => {
922
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&hideIrrelevantFiltersAtTabLevel=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1067
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&hideIrrelevantFiltersAtTabLevel=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
923
1068
  });
924
1069
  });
925
1070
  test('Should add showLiveboardVerifiedBadge flag to the iframe src', async () => {
@@ -929,7 +1074,7 @@ describe('App embed tests', () => {
929
1074
  });
930
1075
  appEmbed.render();
931
1076
  await (0, test_utils_1.executeAfterWait)(() => {
932
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showLiveboardVerifiedBadge=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1077
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&showLiveboardVerifiedBadge=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
933
1078
  });
934
1079
  });
935
1080
  test('Should add isLiveboardPermissionV2Enabled flag to the iframe src', async () => {
@@ -939,7 +1084,7 @@ describe('App embed tests', () => {
939
1084
  });
940
1085
  appEmbed.render();
941
1086
  await (0, test_utils_1.executeAfterWait)(() => {
942
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardPermissionV2Enabled=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1087
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardPermissionV2Enabled=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
943
1088
  });
944
1089
  });
945
1090
  test('Should add default values of flags to the iframe src', async () => {
@@ -948,7 +1093,7 @@ describe('App embed tests', () => {
948
1093
  });
949
1094
  appEmbed.render();
950
1095
  await (0, test_utils_1.executeAfterWait)(() => {
951
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderSticky=true&hideLiveboardHeader=false&showLiveboardDescription=true&showLiveboardTitle=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1096
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&isLiveboardHeaderSticky=true&hideLiveboardHeader=false&showLiveboardDescription=true&showLiveboardTitle=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
952
1097
  });
953
1098
  });
954
1099
  test('Should add modularHomeExperience flag to the iframe src', async () => {
@@ -958,7 +1103,7 @@ describe('App embed tests', () => {
958
1103
  });
959
1104
  appEmbed.render();
960
1105
  await (0, test_utils_1.executeAfterWait)(() => {
961
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1106
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
962
1107
  });
963
1108
  });
964
1109
  test('Should add hideHomepageLeftNav flag to the iframe src', async () => {
@@ -968,7 +1113,7 @@ describe('App embed tests', () => {
968
1113
  });
969
1114
  appEmbed.render();
970
1115
  await (0, test_utils_1.executeAfterWait)(() => {
971
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&hideHomepageLeftNav=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1116
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&hideHomepageLeftNav=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
972
1117
  });
973
1118
  });
974
1119
  test('Should add hideHamburger, hideObjectSearch, hideNotification flags to the iframe src', async () => {
@@ -980,7 +1125,7 @@ describe('App embed tests', () => {
980
1125
  });
981
1126
  appEmbed.render();
982
1127
  await (0, test_utils_1.executeAfterWait)(() => {
983
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&hideHamburger=true&hideObjectSearch=true&hideNotification=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1128
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&hideHamburger=true&hideObjectSearch=true&hideNotification=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
984
1129
  });
985
1130
  });
986
1131
  test('Should not add when hideHamburger, hideObjectSearch, hideNotification values are not true to the iframe src', async () => {
@@ -992,65 +1137,14 @@ describe('App embed tests', () => {
992
1137
  });
993
1138
  appEmbed.render();
994
1139
  await (0, test_utils_1.executeAfterWait)(() => {
995
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1140
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
996
1141
  });
997
1142
  });
998
- test('Should add navigationVersion=v3 when primaryNavbarVersion is Sliding to the iframe src', async () => {
999
- await testUrlParams({
1000
- ...defaultViewConfig,
1001
- discoveryExperience: {
1002
- primaryNavbarVersion: app_1.PrimaryNavbarVersion.Sliding,
1003
- homePage: app_1.HomePage.Modular,
1004
- },
1005
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1006
- });
1007
- test('Should not add navigationVersion=v3 when primaryNavbarVersion is not added to the iframe src', async () => {
1008
- await testUrlParams({
1009
- ...defaultViewConfig,
1010
- discoveryExperience: {
1011
- homePage: app_1.HomePage.Modular,
1012
- },
1013
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1014
- });
1015
- test('Should add navigationVersion=v3 & modularHomeExperience=true when primaryNavbarVersion is Sliding to the iframe src', async () => {
1016
- await testUrlParams({
1017
- ...defaultViewConfig,
1018
- // homePage v2 config not included under discoveryExperience
1019
- discoveryExperience: {
1020
- primaryNavbarVersion: app_1.PrimaryNavbarVersion.Sliding,
1021
- },
1022
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1023
- });
1024
- test('Should add homepageVersion=v3 & navigationVersion=v3 & modularHomeExperience=true when Sliding and ModularWithStylingChanges configured in the iframe src', async () => {
1025
- await testUrlParams({
1026
- ...defaultViewConfig,
1027
- discoveryExperience: {
1028
- primaryNavbarVersion: app_1.PrimaryNavbarVersion.Sliding,
1029
- homePage: app_1.HomePage.ModularWithStylingChanges,
1030
- },
1031
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1032
- });
1033
- test('Should add homepageVersion=v3 & navigationVersion=v3 & modularHomeExperience=true when homePage is ModularWithStylingChanges to the iframe src', async () => {
1034
- await testUrlParams({
1035
- ...defaultViewConfig,
1036
- // primaryNavbarVersion is not included under
1037
- // discoveryExperience, then it set navigationVersion=v2 and
1038
- // modularHomeExperience=false.
1039
- discoveryExperience: {
1040
- homePage: app_1.HomePage.ModularWithStylingChanges,
1041
- },
1042
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&navigationVersion=v2&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1043
- });
1044
- test('Should add navigationVersion=v2 when primaryNavbarVersion is not added to the iframe src', async () => {
1045
- await testUrlParams({
1046
- ...defaultViewConfig,
1047
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&navigationVersion=v2${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1048
- });
1049
1143
  test('Should add enableAskSage flag to the iframe src', async () => {
1050
1144
  await testUrlParams({
1051
1145
  ...defaultViewConfig,
1052
1146
  enableAskSage: true,
1053
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&enableAskSage=true${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1147
+ }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&enableAskSage=true&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1054
1148
  });
1055
1149
  test('Should add listpageVersion=v3 when listPageVersion is ListWithUXChanges to the iframe src', async () => {
1056
1150
  await testUrlParams({
@@ -1058,31 +1152,30 @@ describe('App embed tests', () => {
1058
1152
  discoveryExperience: {
1059
1153
  listPageVersion: app_1.ListPage.ListWithUXChanges,
1060
1154
  },
1061
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&listpageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1155
+ }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&listpageVersion=v3&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1062
1156
  });
1063
- test('Should add listpageVersion=v2 by default when no discoveryExperience is provided', async () => {
1157
+ test('Should send navigationVersion=v3 & homepageVersion=v3 by default when no discoveryExperience is provided', async () => {
1064
1158
  await testUrlParams({
1065
1159
  ...defaultViewConfig,
1066
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&navigationVersion=v2${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1160
+ }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1067
1161
  });
1068
- test('Should add listpageVersion=v2 by default when discoveryExperience is provided but listPageVersion is not specified', async () => {
1069
- await testUrlParams({
1162
+ test('Should not send modularHomeExperience param by default when not specified', async () => {
1163
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
1070
1164
  ...defaultViewConfig,
1071
- discoveryExperience: {
1072
- primaryNavbarVersion: app_1.PrimaryNavbarVersion.Sliding,
1073
- homePage: app_1.HomePage.Modular,
1074
- },
1075
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1165
+ });
1166
+ appEmbed.render();
1167
+ await (0, test_utils_1.executeAfterWait)(() => {
1168
+ const url = new URL((0, test_utils_1.getIFrameSrc)());
1169
+ expect(url.searchParams.has('modularHomeExperience')).toBe(false);
1170
+ });
1076
1171
  });
1077
1172
  test('Should add listpageVersion=v3 combined with other discoveryExperience options to the iframe src', async () => {
1078
1173
  await testUrlParams({
1079
1174
  ...defaultViewConfig,
1080
1175
  discoveryExperience: {
1081
- primaryNavbarVersion: app_1.PrimaryNavbarVersion.Sliding,
1082
- homePage: app_1.HomePage.Modular,
1083
1176
  listPageVersion: app_1.ListPage.ListWithUXChanges,
1084
1177
  },
1085
- }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3&listpageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1178
+ }, `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3&listpageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1086
1179
  });
1087
1180
  test('Should add enablePendoHelp flag to the iframe src conditional on navbar', async () => {
1088
1181
  const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
@@ -1090,7 +1183,7 @@ describe('App embed tests', () => {
1090
1183
  });
1091
1184
  appEmbed.render();
1092
1185
  await (0, test_utils_1.executeAfterWait)(() => {
1093
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?enablePendoHelp=true&embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1186
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?enablePendoHelp=true&embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1094
1187
  });
1095
1188
  const noNavEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
1096
1189
  ...defaultViewConfig,
@@ -1098,7 +1191,7 @@ describe('App embed tests', () => {
1098
1191
  });
1099
1192
  noNavEmbed.render();
1100
1193
  await (0, test_utils_1.executeAfterWait)(() => {
1101
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?enablePendoHelp=false&embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1194
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?enablePendoHelp=false&embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1102
1195
  });
1103
1196
  });
1104
1197
  test('should set enableLiveboardDataCache to true in url', async () => {
@@ -1108,7 +1201,7 @@ describe('App embed tests', () => {
1108
1201
  });
1109
1202
  appEmbed.render();
1110
1203
  await (0, test_utils_1.executeAfterWait)(() => {
1111
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableLiveboardDataCache=true${defaultParamsPost}#/home`);
1204
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableLiveboardDataCache=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
1112
1205
  });
1113
1206
  });
1114
1207
  test('should set enableLiveboardDataCache to false in url', async () => {
@@ -1118,7 +1211,7 @@ describe('App embed tests', () => {
1118
1211
  });
1119
1212
  appEmbed.render();
1120
1213
  await (0, test_utils_1.executeAfterWait)(() => {
1121
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableLiveboardDataCache=false${defaultParamsPost}#/home`);
1214
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&enableLiveboardDataCache=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
1122
1215
  });
1123
1216
  });
1124
1217
  test('should not set enableLiveboardDataCache in url when not provided', async () => {
@@ -1137,7 +1230,7 @@ describe('App embed tests', () => {
1137
1230
  });
1138
1231
  await appEmbed.render();
1139
1232
  await (0, test_utils_1.executeAfterWait)(() => {
1140
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&homePageSearchBarMode=objectSearch${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1233
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&homePageSearchBarMode=objectSearch&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1141
1234
  });
1142
1235
  });
1143
1236
  test('Should add HomePageSearchBarMode flag with ai answer to the iframe src', async () => {
@@ -1147,7 +1240,7 @@ describe('App embed tests', () => {
1147
1240
  });
1148
1241
  await appEmbed.render();
1149
1242
  await (0, test_utils_1.executeAfterWait)(() => {
1150
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&homePageSearchBarMode=aiAnswer${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1243
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&homePageSearchBarMode=aiAnswer&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1151
1244
  });
1152
1245
  });
1153
1246
  test('Should add HomePageSearchBarMode flag with none to the iframe src', async () => {
@@ -1157,7 +1250,7 @@ describe('App embed tests', () => {
1157
1250
  });
1158
1251
  await appEmbed.render();
1159
1252
  await (0, test_utils_1.executeAfterWait)(() => {
1160
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&homePageSearchBarMode=none${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1253
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&homePageSearchBarMode=none&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1161
1254
  });
1162
1255
  });
1163
1256
  test('Should add dataPanelCustomGroupsAccordionInitialState flag to the iframe src', async () => {
@@ -1167,7 +1260,7 @@ describe('App embed tests', () => {
1167
1260
  });
1168
1261
  appEmbed.render();
1169
1262
  await (0, test_utils_1.executeAfterWait)(() => {
1170
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&dataPanelCustomGroupsAccordionInitialState=EXPAND_FIRST${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1263
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&dataPanelCustomGroupsAccordionInitialState=EXPAND_FIRST&navigationVersion=v3&homepageVersion=v3${test_utils_1.defaultParams}${defaultParamsPost}#/home`);
1171
1264
  });
1172
1265
  });
1173
1266
  test('should register event handlers to adjust iframe height', async () => {
@@ -1219,7 +1312,7 @@ describe('App embed tests', () => {
1219
1312
  });
1220
1313
  await appEmbed.render();
1221
1314
  appEmbed.navigateToPage(path);
1222
- (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&${test_utils_1.defaultParamsForPinboardEmbed}${defaultParamsPost}#/${path}`);
1315
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&navigationVersion=v3&homepageVersion=v3&${test_utils_1.defaultParamsForPinboardEmbed}${defaultParamsPost}#/${path}`);
1223
1316
  });
1224
1317
  test('navigateToPage with noReload should trigger the appropriate event', async () => {
1225
1318
  (0, test_utils_1.mockMessageChannel)();
@@ -1847,4 +1940,80 @@ describe('AppEmbed visualOverrides tests', () => {
1847
1940
  await (0, test_utils_1.testVisualOverridesInEmbed)(appEmbed, visualOverrides);
1848
1941
  });
1849
1942
  });
1943
+ describe('AppEmbed getEmbedParamsObject', () => {
1944
+ beforeEach(() => {
1945
+ cleanUp();
1946
+ jest.spyOn(ts_embed_1.TsEmbed.prototype, 'getAppInitData').mockResolvedValue({});
1947
+ });
1948
+ afterEach(() => {
1949
+ jest.restoreAllMocks();
1950
+ });
1951
+ test('getEmbedParams should use getEmbedParamsObject internally', async () => {
1952
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
1953
+ ...defaultViewConfig,
1954
+ fullHeight: true,
1955
+ });
1956
+ const getEmbedParamsObjectSpy = jest.spyOn(appEmbed, 'getEmbedParamsObject');
1957
+ await appEmbed.render();
1958
+ expect(getEmbedParamsObjectSpy).toHaveBeenCalled();
1959
+ });
1960
+ test('getEmbedParamsObject should contain isFullHeightPinboard when fullHeight is true', () => {
1961
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
1962
+ ...defaultViewConfig,
1963
+ fullHeight: true,
1964
+ });
1965
+ const params = appEmbed.getEmbedParamsObject();
1966
+ expect(params.isFullHeightPinboard).toBe(true);
1967
+ expect(params.fullHeight).toBeUndefined();
1968
+ });
1969
+ test('getEmbedParamsObject should not contain isFullHeightPinboard when fullHeight is false', () => {
1970
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
1971
+ ...defaultViewConfig,
1972
+ fullHeight: false,
1973
+ });
1974
+ const params = appEmbed.getEmbedParamsObject();
1975
+ expect(params.isFullHeightPinboard).toBeUndefined();
1976
+ });
1977
+ test('getUpdateEmbedParamsObject should contain isFullHeightPinboard when fullHeight is true', async () => {
1978
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
1979
+ ...defaultViewConfig,
1980
+ fullHeight: true,
1981
+ });
1982
+ const params = await appEmbed.getUpdateEmbedParamsObject();
1983
+ expect(params.isFullHeightPinboard).toBe(true);
1984
+ });
1985
+ test('getUpdateEmbedParamsObject should not contain isFullHeightPinboard when fullHeight is false', async () => {
1986
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
1987
+ ...defaultViewConfig,
1988
+ fullHeight: false,
1989
+ });
1990
+ const params = await appEmbed.getUpdateEmbedParamsObject();
1991
+ expect(params.isFullHeightPinboard).toBeUndefined();
1992
+ });
1993
+ });
1994
+ describe('AppEmbed updatedSpotterExperience tests', () => {
1995
+ beforeEach(() => {
1996
+ cleanUp();
1997
+ });
1998
+ test('should set updatedSpotterExperience to true in url', async () => {
1999
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
2000
+ ...defaultViewConfig,
2001
+ updatedSpotterExperience: true,
2002
+ });
2003
+ appEmbed.render();
2004
+ await (0, test_utils_1.executeAfterWait)(() => {
2005
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&updatedSpotterExperience=true&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
2006
+ });
2007
+ });
2008
+ test('should set updatedSpotterExperience to false in url', async () => {
2009
+ const appEmbed = new app_1.AppEmbed((0, test_utils_1.getRootEl)(), {
2010
+ ...defaultViewConfig,
2011
+ updatedSpotterExperience: false,
2012
+ });
2013
+ appEmbed.render();
2014
+ await (0, test_utils_1.executeAfterWait)(() => {
2015
+ (0, test_utils_1.expectUrlMatchesWithParams)((0, test_utils_1.getIFrameSrc)(), `http://${thoughtSpotHost}/?embedApp=true&profileAndHelpInNavBarHidden=false&updatedSpotterExperience=false&navigationVersion=v3&homepageVersion=v3${defaultParamsPost}#/home`);
2016
+ });
2017
+ });
2018
+ });
1850
2019
  //# sourceMappingURL=app.spec.js.map