@@ -811,6 +811,53 @@ describe('App embed tests', () => {
811811 } ) ;
812812 } ) ;
813813
814+ test ( 'Should add muzeChartPhase1EnabledGA true to the iframe src' , async ( ) => {
815+ const appEmbed = new AppEmbed ( getRootEl ( ) , {
816+ ...defaultViewConfig ,
817+ showPrimaryNavbar : false ,
818+ muzeChartPhase1EnabledGA : true ,
819+ } as AppViewConfig ) ;
820+
821+ appEmbed . render ( ) ;
822+ await executeAfterWait ( ( ) => {
823+ expectUrlMatchesWithParams (
824+ getIFrameSrc ( ) ,
825+ `http://${ thoughtSpotHost } /?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&muzeChartPhase1EnabledGA=true${ defaultParams } ${ defaultParamsPost } #/home` ,
826+ ) ;
827+ } ) ;
828+ } ) ;
829+
830+ test ( 'Should add muzeChartPhase1EnabledGA false to the iframe src' , async ( ) => {
831+ const appEmbed = new AppEmbed ( getRootEl ( ) , {
832+ ...defaultViewConfig ,
833+ showPrimaryNavbar : false ,
834+ muzeChartPhase1EnabledGA : false ,
835+ } as AppViewConfig ) ;
836+
837+ appEmbed . render ( ) ;
838+ await executeAfterWait ( ( ) => {
839+ expectUrlMatchesWithParams (
840+ getIFrameSrc ( ) ,
841+ `http://${ thoughtSpotHost } /?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&muzeChartPhase1EnabledGA=false${ defaultParams } ${ defaultParamsPost } #/home` ,
842+ ) ;
843+ } ) ;
844+ } ) ;
845+
846+ test ( 'Should not add muzeChartPhase1EnabledGA to the iframe src when not specified' , async ( ) => {
847+ const appEmbed = new AppEmbed ( getRootEl ( ) , {
848+ ...defaultViewConfig ,
849+ showPrimaryNavbar : false ,
850+ } as AppViewConfig ) ;
851+
852+ appEmbed . render ( ) ;
853+ await executeAfterWait ( ( ) => {
854+ expectUrlMatchesWithParams (
855+ getIFrameSrc ( ) ,
856+ `http://${ thoughtSpotHost } /?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${ defaultParams } ${ defaultParamsPost } #/home` ,
857+ ) ;
858+ } ) ;
859+ } ) ;
860+
814861 test ( 'Should add enableSearchAssist flagto the iframe src' , async ( ) => {
815862 const appEmbed = new AppEmbed ( getRootEl ( ) , {
816863 ...defaultViewConfig ,
0 commit comments