@@ -73,15 +73,15 @@ describe('index.jsx integration', () => {
7373 } ) ;
7474
7575 it ( 'navbar items and the dropdowns in the navbar exist' , ( ) => {
76- const navigation = screen . getByRole ( 'navigation ' ) ;
76+ const navigation = screen . getByRole ( 'menubar ' ) ;
7777 expect ( navigation ) . toBeInTheDocument ( ) ;
7878
79- const fileButton = within ( navigation ) . getByRole ( 'button ' , {
79+ const fileButton = within ( navigation ) . getByRole ( 'menuitem ' , {
8080 name : / ^ f i l e $ / i
8181 } ) ;
8282 expect ( fileButton ) . toBeInTheDocument ( ) ;
8383
84- const newFileButton = within ( navigation ) . getByRole ( 'button ' , {
84+ const newFileButton = within ( navigation ) . getByRole ( 'menuitem ' , {
8585 name : / ^ n e w $ / i
8686 } ) ;
8787 expect ( newFileButton ) . toBeInTheDocument ( ) ;
@@ -91,17 +91,17 @@ describe('index.jsx integration', () => {
9191 // const exampleFileButton = within(navigation).getByRole('link', {name: /^examples$/i});
9292 // expect(exampleFileButton).toBeInTheDocument();
9393
94- const editButton = within ( navigation ) . getByRole ( 'button ' , {
94+ const editButton = within ( navigation ) . getByRole ( 'menuitem ' , {
9595 name : / ^ e d i t $ / i
9696 } ) ;
9797 expect ( editButton ) . toBeInTheDocument ( ) ;
9898
99- const sketchButton = within ( navigation ) . getByRole ( 'button ' , {
99+ const sketchButton = within ( navigation ) . getByRole ( 'menuitem ' , {
100100 name : / ^ s k e t c h $ / i
101101 } ) ;
102102 expect ( sketchButton ) . toBeInTheDocument ( ) ;
103103
104- const helpButton = within ( navigation ) . getByRole ( 'button ' , {
104+ const helpButton = within ( navigation ) . getByRole ( 'menuitem ' , {
105105 name : / ^ h e l p $ / i
106106 } ) ;
107107 expect ( helpButton ) . toBeInTheDocument ( ) ;
0 commit comments