File tree Expand file tree Collapse file tree
packages/test/page-object/src/globals/renderWebChat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export default function renderWebChat(props, container) {
99
1010 const { searchParams } = new URL ( window . location . href ) ;
1111 const isFluentTheme = searchParams . get ( 'theme' ) === 'fluent' ;
12- const isCopilotVariant =
13- searchParams . get ( 'variant' ) === 'copilot' || searchParams . get ( 'variant' ) === 'copilot-deprecated' ;
12+ const isCopilotDeprecatedVariant = searchParams . get ( 'variant' ) === 'copilot-deprecated' ;
13+ const isCopilotVariant = searchParams . get ( 'variant' ) === 'copilot' || isCopilotDeprecatedVariant ;
1414
1515 if ( isFluentTheme ) {
1616 if ( ! window . React || ! window . ReactDOM ) {
@@ -29,7 +29,8 @@ export default function renderWebChat(props, container) {
2929 React . createElement (
3030 FluentThemeProvider ,
3131 {
32- ...( isCopilotVariant && { variant : 'copilot' } )
32+ ...( isCopilotVariant && { variant : 'copilot' } ) ,
33+ ...( isCopilotDeprecatedVariant && { variant : 'copilot-deprecated' } )
3334 } ,
3435 React . createElement ( ReactWebChat , props )
3536 ) ,
@@ -42,5 +43,5 @@ export default function renderWebChat(props, container) {
4243 window . WebChat . renderWebChat ( props , container ) ;
4344 }
4445
45- return { isFluentTheme, isCopilotVariant } ;
46+ return { isFluentTheme, isCopilotVariant, isCopilotDeprecatedVariant } ;
4647}
You can’t perform that action at this time.
0 commit comments