@@ -228,7 +228,7 @@ describe('FilterGroup', () => {
228228 it ( 'should sort options alphabetically by default' , ( ) => {
229229 renderWithMantine ( < FilterGroup { ...defaultProps } /> ) ;
230230
231- const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / g ) ;
231+ const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / ) ;
232232 expect ( options ) . toHaveLength ( 3 ) ;
233233 const labels = screen . getAllByText ( / a p p l e | b a n a n a | z e b r a / ) ;
234234 expect ( labels [ 0 ] ) . toHaveTextContent ( 'apple' ) ;
@@ -247,7 +247,7 @@ describe('FilterGroup', () => {
247247 /> ,
248248 ) ;
249249
250- const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / g ) ;
250+ const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / ) ;
251251 expect ( options ) . toHaveLength ( 3 ) ;
252252 const labels = screen . getAllByText ( / a p p l e | b a n a n a | z e b r a / ) ;
253253 expect ( labels [ 0 ] ) . toHaveTextContent ( 'apple' ) ;
@@ -276,7 +276,7 @@ describe('FilterGroup', () => {
276276 /> ,
277277 ) ;
278278
279- const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / g ) ;
279+ const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / ) ;
280280 expect ( options ) . toHaveLength ( 3 ) ;
281281 const labels = screen . getAllByText ( / a p p l e | b a n a n a | z e b r a / ) ;
282282 expect ( labels [ 0 ] ) . toHaveTextContent ( 'banana' ) ; // Selected
@@ -309,7 +309,7 @@ describe('FilterGroup', () => {
309309 ) ;
310310 await userEvent . click ( showPercentages ) ;
311311
312- const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / g ) ;
312+ const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / ) ;
313313 expect ( options ) . toHaveLength ( 3 ) ;
314314 const labels = screen . getAllByText ( / % / ) ;
315315 expect ( labels [ 0 ] ) . toHaveTextContent ( '~99%' ) ; // apple
@@ -328,7 +328,7 @@ describe('FilterGroup', () => {
328328 /> ,
329329 ) ;
330330
331- const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / g ) ;
331+ const options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / ) ;
332332 expect ( options ) . toHaveLength ( 3 ) ;
333333 const labels = screen . getAllByText ( / a p p l e | b a n a n a | z e b r a / ) ;
334334 expect ( labels [ 0 ] ) . toHaveTextContent ( 'apple' ) ; // included first
@@ -359,7 +359,7 @@ describe('FilterGroup', () => {
359359 ) ;
360360
361361 // Should show MAX_FILTER_GROUP_ITEMS (10) by default
362- let options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / g ) ;
362+ let options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / ) ;
363363 expect ( options ) . toHaveLength ( 10 ) ;
364364
365365 // Selected items should be visible even if they would be beyond MAX_FILTER_GROUP_ITEMS
@@ -372,7 +372,7 @@ describe('FilterGroup', () => {
372372 await userEvent . click ( showMoreButton ) ;
373373
374374 // Should show all items
375- options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / g ) ;
375+ options = screen . getAllByTestId ( / f i l t e r - c h e c k b o x - i n p u t / ) ;
376376 expect ( options ) . toHaveLength ( 15 ) ;
377377 } ) ;
378378
0 commit comments