@@ -159,22 +159,18 @@ describe('SimulatorBar', () => {
159159 const wrapper = mountBar ( )
160160 const themeSelect = wrapper . find ( '.modern-bar__select[aria-label="Theme"]' )
161161 expect ( themeSelect . exists ( ) ) . toBe ( true )
162- // Pick a theme that differs from the mocked activeThemeId (THEME_IDS[0]).
163- const targetTheme = THEME_IDS [ 1 ]
164- await themeSelect . setValue ( targetTheme )
162+ await themeSelect . setValue ( 'dracula' )
165163 await themeSelect . trigger ( 'change' )
166- expect ( switchThemeMock ) . toHaveBeenCalledWith ( targetTheme )
164+ expect ( switchThemeMock ) . toHaveBeenCalledWith ( 'dracula' )
167165 } )
168166
169167 it ( 'should call switchSkin when skin select changes' , async ( ) => {
170168 const wrapper = mountBar ( )
171169 const skinSelect = wrapper . find ( '.modern-bar__select[aria-label="Skin"]' )
172170 expect ( skinSelect . exists ( ) ) . toBe ( true )
173- // Pick a skin that differs from the mocked activeSkinId ('modern').
174- const targetSkin = SKIN_IDS . find ( id => id !== 'modern' ) ?? SKIN_IDS [ 0 ]
175- await skinSelect . setValue ( targetSkin )
171+ await skinSelect . setValue ( 'classic' )
176172 await skinSelect . trigger ( 'change' )
177- expect ( switchSkinMock ) . toHaveBeenCalledWith ( targetSkin )
173+ expect ( switchSkinMock ) . toHaveBeenCalledWith ( 'classic' )
178174 } )
179175
180176 it ( 'should emit switch-server with selectedIndex when server select changes via trigger' , async ( ) => {
0 commit comments