@@ -158,11 +158,11 @@ describe('Chatbot - Compare Mode (Mocked)', () => {
158158 cy . step ( 'Verify in compare mode with two panes' ) ;
159159 chatbotPage . verifyInCompareMode ( ) ;
160160
161- cy . step ( 'Verify Model 1 pane exists' ) ;
161+ cy . step ( 'Verify Chat 1 pane exists' ) ;
162162 chatbotPage . findChatbotPaneByIndex ( 0 ) . should ( 'be.visible' ) ;
163163 chatbotPage . findPaneLabel ( 0 ) . should ( 'be.visible' ) ;
164164
165- cy . step ( 'Verify Model 2 pane exists' ) ;
165+ cy . step ( 'Verify Chat 2 pane exists' ) ;
166166 chatbotPage . findChatbotPaneByIndex ( 1 ) . should ( 'be.visible' ) ;
167167 chatbotPage . findPaneLabel ( 1 ) . should ( 'be.visible' ) ;
168168 } ,
@@ -182,29 +182,26 @@ describe('Chatbot - Compare Mode (Mocked)', () => {
182182 'should display model selector in each pane' ,
183183 { tags : [ '@GenAI' , '@Chatbot' , '@CompareMode' , '@UI' ] } ,
184184 ( ) => {
185- cy . step ( 'Verify Model 1 pane has model selector' ) ;
185+ cy . step ( 'Verify Chat 1 pane has model selector' ) ;
186186 chatbotPage . findPaneModelSelector ( 0 ) . should ( 'be.visible' ) ;
187187
188- cy . step ( 'Verify Model 2 pane has model selector' ) ;
188+ cy . step ( 'Verify Chat 2 pane has model selector' ) ;
189189 chatbotPage . findPaneModelSelector ( 1 ) . should ( 'be.visible' ) ;
190190 } ,
191191 ) ;
192192
193193 it (
194- 'should display settings and close buttons in each pane' ,
194+ 'should display close button in each pane and settings button in header ' ,
195195 { tags : [ '@GenAI' , '@Chatbot' , '@CompareMode' , '@UI' ] } ,
196196 ( ) => {
197- cy . step ( 'Verify Model 1 pane has settings button' ) ;
198- chatbotPage . findPaneSettingsButton ( 0 ) . should ( 'be.visible' ) ;
199-
200- cy . step ( 'Verify Model 1 pane has close button' ) ;
197+ cy . step ( 'Verify Chat 1 pane has close button' ) ;
201198 chatbotPage . findPaneCloseButton ( 0 ) . should ( 'be.visible' ) ;
202199
203- cy . step ( 'Verify Model 2 pane has settings button' ) ;
204- chatbotPage . findPaneSettingsButton ( 1 ) . should ( 'be.visible' ) ;
205-
206- cy . step ( 'Verify Model 2 pane has close button' ) ;
200+ cy . step ( 'Verify Chat 2 pane has close button' ) ;
207201 chatbotPage . findPaneCloseButton ( 1 ) . should ( 'be.visible' ) ;
202+
203+ cy . step ( 'Verify global Settings button is in header' ) ;
204+ chatbotPage . findSettingsButton ( ) . should ( 'be.visible' ) ;
208205 } ,
209206 ) ;
210207
@@ -228,26 +225,28 @@ describe('Chatbot - Compare Mode (Mocked)', () => {
228225 } ) ;
229226
230227 it (
231- 'should open settings for Model 1 when clicking Model 1 settings button ' ,
228+ 'should open settings panel via header button and switch to Chat 1 ' ,
232229 { tags : [ '@GenAI' , '@Chatbot' , '@CompareMode' , '@Settings' ] } ,
233230 ( ) => {
234- cy . step ( 'Click settings button on Model 1 pane ' ) ;
235- chatbotPage . openPaneSettings ( 0 ) ;
231+ cy . step ( 'Open settings panel and switch to Chat 1 ' ) ;
232+ chatbotPage . openPaneSettings ( 1 ) ;
236233
237- cy . step ( 'Verify settings panel shows Configure - 1' ) ;
238- chatbotPage . findSettingsPanelHeader ( ) . should ( 'contain.text' , 'Configure - 1' ) ;
234+ cy . step ( 'Verify config switcher is visible with Chat 1 selected' ) ;
235+ chatbotPage . findConfigSwitcher ( ) . should ( 'be.visible' ) ;
236+ chatbotPage . findConfigTab ( 1 ) . should ( 'have.attr' , 'aria-pressed' , 'true' ) ;
239237 } ,
240238 ) ;
241239
242240 it (
243- 'should open settings for Model 2 when clicking Model 2 settings button ' ,
241+ 'should switch settings panel to Chat 2 via config switcher ' ,
244242 { tags : [ '@GenAI' , '@Chatbot' , '@CompareMode' , '@Settings' ] } ,
245243 ( ) => {
246- cy . step ( 'Click settings button on Model 2 pane ' ) ;
247- chatbotPage . openPaneSettings ( 1 ) ;
244+ cy . step ( 'Open settings panel and switch to Chat 2 ' ) ;
245+ chatbotPage . openPaneSettings ( 2 ) ;
248246
249- cy . step ( 'Verify settings panel shows Configure - 2' ) ;
250- chatbotPage . findSettingsPanelHeader ( ) . should ( 'contain.text' , 'Configure - 2' ) ;
247+ cy . step ( 'Verify config switcher is visible with Chat 2 selected' ) ;
248+ chatbotPage . findConfigSwitcher ( ) . should ( 'be.visible' ) ;
249+ chatbotPage . findConfigTab ( 2 ) . should ( 'have.attr' , 'aria-pressed' , 'true' ) ;
251250 } ,
252251 ) ;
253252 } ) ;
@@ -295,10 +294,10 @@ describe('Chatbot - Compare Mode (Mocked)', () => {
295294 } ) ;
296295
297296 it (
298- 'should exit compare mode when closing Model 1 pane' ,
297+ 'should exit compare mode when closing Chat 1 pane' ,
299298 { tags : [ '@GenAI' , '@Chatbot' , '@CompareMode' , '@E2E' ] } ,
300299 ( ) => {
301- cy . step ( 'Close Model 1 pane' ) ;
300+ cy . step ( 'Close Chat 1 pane' ) ;
302301 chatbotPage . closePaneByIndex ( 0 ) ;
303302
304303 cy . step ( 'Verify exited compare mode' ) ;
@@ -310,10 +309,10 @@ describe('Chatbot - Compare Mode (Mocked)', () => {
310309 ) ;
311310
312311 it (
313- 'should exit compare mode when closing Model 2 pane' ,
312+ 'should exit compare mode when closing Chat 2 pane' ,
314313 { tags : [ '@GenAI' , '@Chatbot' , '@CompareMode' , '@E2E' ] } ,
315314 ( ) => {
316- cy . step ( 'Close Model 2 pane' ) ;
315+ cy . step ( 'Close Chat 2 pane' ) ;
317316 chatbotPage . closePaneByIndex ( 1 ) ;
318317
319318 cy . step ( 'Verify exited compare mode' ) ;
0 commit comments