@@ -73,15 +73,15 @@ describe('index.jsx integration', () => {
73
73
} ) ;
74
74
75
75
it ( 'navbar items and the dropdowns in the navbar exist' , ( ) => {
76
- const navigation = screen . getByRole ( 'navigation ' ) ;
76
+ const navigation = screen . getByRole ( 'menubar ' ) ;
77
77
expect ( navigation ) . toBeInTheDocument ( ) ;
78
78
79
- const fileButton = within ( navigation ) . getByRole ( 'button ' , {
79
+ const fileButton = within ( navigation ) . getByRole ( 'menuitem ' , {
80
80
name : / ^ f i l e $ / i
81
81
} ) ;
82
82
expect ( fileButton ) . toBeInTheDocument ( ) ;
83
83
84
- const newFileButton = within ( navigation ) . getByRole ( 'button ' , {
84
+ const newFileButton = within ( navigation ) . getByRole ( 'menuitem ' , {
85
85
name : / ^ n e w $ / i
86
86
} ) ;
87
87
expect ( newFileButton ) . toBeInTheDocument ( ) ;
@@ -91,17 +91,17 @@ describe('index.jsx integration', () => {
91
91
// const exampleFileButton = within(navigation).getByRole('link', {name: /^examples$/i});
92
92
// expect(exampleFileButton).toBeInTheDocument();
93
93
94
- const editButton = within ( navigation ) . getByRole ( 'button ' , {
94
+ const editButton = within ( navigation ) . getByRole ( 'menuitem ' , {
95
95
name : / ^ e d i t $ / i
96
96
} ) ;
97
97
expect ( editButton ) . toBeInTheDocument ( ) ;
98
98
99
- const sketchButton = within ( navigation ) . getByRole ( 'button ' , {
99
+ const sketchButton = within ( navigation ) . getByRole ( 'menuitem ' , {
100
100
name : / ^ s k e t c h $ / i
101
101
} ) ;
102
102
expect ( sketchButton ) . toBeInTheDocument ( ) ;
103
103
104
- const helpButton = within ( navigation ) . getByRole ( 'button ' , {
104
+ const helpButton = within ( navigation ) . getByRole ( 'menuitem ' , {
105
105
name : / ^ h e l p $ / i
106
106
} ) ;
107
107
expect ( helpButton ) . toBeInTheDocument ( ) ;
0 commit comments