@@ -148,7 +148,9 @@ describe('EventCalendar', () => {
148148 const monthView = withinMonthView ( ) ;
149149
150150 // Weekends should be visible by default
151+ // eslint-disable-next-line testing-library/prefer-screen-queries -- scoped query within month view
151152 expect ( monthView . getByRole ( 'columnheader' , { name : / S u n d a y / i } ) ) . not . to . equal ( null ) ;
153+ // eslint-disable-next-line testing-library/prefer-screen-queries -- scoped query within month view
152154 expect ( monthView . getByRole ( 'columnheader' , { name : / S a t u r d a y / i } ) ) . not . to . equal ( null ) ;
153155
154156 // Hide the weekends
@@ -157,7 +159,9 @@ describe('EventCalendar', () => {
157159 await user . keyboard ( '{Escape}' ) ;
158160 await waitFor ( ( ) => expect ( screen . queryByRole ( 'menu' ) ) . to . equal ( null ) ) ;
159161
162+ // eslint-disable-next-line testing-library/prefer-screen-queries -- scoped query within month view
160163 expect ( monthView . queryByRole ( 'columnheader' , { name : / S u n d a y / i } ) ) . to . equal ( null ) ;
164+ // eslint-disable-next-line testing-library/prefer-screen-queries -- scoped query within month view
161165 expect ( monthView . queryByRole ( 'columnheader' , { name : / S a t u r d a y / i } ) ) . to . equal ( null ) ;
162166
163167 // Show the weekends again
@@ -166,7 +170,9 @@ describe('EventCalendar', () => {
166170 await user . keyboard ( '{Escape}' ) ;
167171 await waitFor ( ( ) => expect ( screen . queryByRole ( 'menu' ) ) . to . equal ( null ) ) ;
168172
173+ // eslint-disable-next-line testing-library/prefer-screen-queries -- scoped query within month view
169174 expect ( monthView . getByRole ( 'columnheader' , { name : / S u n d a y / i } ) ) . not . to . equal ( null ) ;
175+ // eslint-disable-next-line testing-library/prefer-screen-queries -- scoped query within month view
170176 expect ( monthView . getByRole ( 'columnheader' , { name : / S a t u r d a y / i } ) ) . not . to . equal ( null ) ;
171177 } ) ;
172178
0 commit comments