@@ -340,24 +340,24 @@ describe('cat-menu', () => {
340340 } ) ;
341341
342342 describe ( 'menu content' , ( ) => {
343- it ( 'should render nav with role="menu" and default vertical orientation' , async ( ) => {
343+ it ( 'should render div with role="menu" and default vertical orientation' , async ( ) => {
344344 const page = await newSpecPage ( {
345345 components : [ CatMenu , CatDropdown , CatButton ] ,
346346 html : `<cat-menu></cat-menu>`
347347 } ) ;
348348
349- const nav = page . root ?. shadowRoot ?. querySelector ( 'nav [role="menu"]' ) ;
350- expect ( nav ?. getAttribute ( 'aria-orientation' ) ) . toBe ( 'vertical' ) ;
349+ const menu = page . root ?. shadowRoot ?. querySelector ( 'div [role="menu"]' ) ;
350+ expect ( menu ?. getAttribute ( 'aria-orientation' ) ) . toBe ( 'vertical' ) ;
351351 } ) ;
352352
353- it ( 'should render nav with horizontal orientation when arrowNavigation is horizontal' , async ( ) => {
353+ it ( 'should render div with horizontal orientation when arrowNavigation is horizontal' , async ( ) => {
354354 const page = await newSpecPage ( {
355355 components : [ CatMenu , CatDropdown , CatButton ] ,
356356 html : `<cat-menu arrow-navigation="horizontal"></cat-menu>`
357357 } ) ;
358358
359- const nav = page . root ?. shadowRoot ?. querySelector ( 'nav [role="menu"]' ) ;
360- expect ( nav ?. getAttribute ( 'aria-orientation' ) ) . toBe ( 'horizontal' ) ;
359+ const menu = page . root ?. shadowRoot ?. querySelector ( 'div [role="menu"]' ) ;
360+ expect ( menu ?. getAttribute ( 'aria-orientation' ) ) . toBe ( 'horizontal' ) ;
361361 } ) ;
362362 } ) ;
363363
0 commit comments