@@ -136,7 +136,7 @@ describe(
136136 expect ( screen . getByText ( 'Manager Group' ) ) . toBeInTheDocument ( )
137137 expect ( screen . getByText ( 'User Group' ) ) . toBeInTheDocument ( )
138138
139- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
139+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
140140 expect ( checkboxes ) . toHaveLength ( 3 )
141141 } )
142142 } ,
@@ -153,7 +153,7 @@ describe(
153153 /> )
154154
155155 await waitFor ( ( ) => {
156- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
156+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
157157
158158 // Admin Group (id: 1) - should be checked
159159 expect ( checkboxes [ 0 ] ) . toHaveAttribute (
@@ -187,7 +187,7 @@ describe(
187187 /> )
188188
189189 await waitFor ( ( ) => {
190- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
190+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
191191
192192 // Click on User Group (id: 3) which is not assigned
193193 fireEvent . click ( checkboxes [ 2 ] )
@@ -214,7 +214,7 @@ describe(
214214 /> )
215215
216216 await waitFor ( ( ) => {
217- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
217+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
218218
219219 // Click on Admin Group (id: 1) which is assigned
220220 fireEvent . click ( checkboxes [ 0 ] )
@@ -246,7 +246,7 @@ describe(
246246 /> )
247247
248248 await waitFor ( ( ) => {
249- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
249+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
250250 checkboxes . forEach ( ( checkbox ) => {
251251 expect ( checkbox ) . toBeDisabled ( )
252252 } )
@@ -270,7 +270,7 @@ describe(
270270 /> )
271271
272272 await waitFor ( ( ) => {
273- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
273+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
274274 checkboxes . forEach ( ( checkbox ) => {
275275 expect ( checkbox ) . toBeDisabled ( )
276276 } )
@@ -311,7 +311,7 @@ describe(
311311
312312 await waitFor ( ( ) => {
313313 expect ( screen . getByText ( 'users.manageUserOrgGroup' ) ) . toBeInTheDocument ( )
314- expect ( screen . queryAllByTestId ( 'scopeInput ' ) ) . toHaveLength ( 0 )
314+ expect ( screen . queryAllByTestId ( 'orgGroupInput ' ) ) . toHaveLength ( 0 )
315315 } )
316316 } ,
317317 )
@@ -330,7 +330,7 @@ describe(
330330
331331 await waitFor ( ( ) => {
332332 expect ( screen . getByText ( 'users.manageUserOrgGroup' ) ) . toBeInTheDocument ( )
333- expect ( screen . queryAllByTestId ( 'scopeInput ' ) ) . toHaveLength ( 0 )
333+ expect ( screen . queryAllByTestId ( 'orgGroupInput ' ) ) . toHaveLength ( 0 )
334334 } )
335335 } ,
336336 )
@@ -355,7 +355,7 @@ describe(
355355 /> )
356356
357357 await waitFor ( ( ) => {
358- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
358+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
359359 checkboxes . forEach ( ( checkbox ) => {
360360 expect ( checkbox ) . toHaveAttribute (
361361 'aria-checked' ,
@@ -386,7 +386,7 @@ describe(
386386 /> )
387387
388388 await waitFor ( ( ) => {
389- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
389+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
390390 checkboxes . forEach ( ( checkbox ) => {
391391 expect ( checkbox ) . toHaveAttribute (
392392 'aria-checked' ,
@@ -413,7 +413,7 @@ describe(
413413 /> )
414414
415415 await waitFor ( ( ) => {
416- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
416+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
417417 checkboxes . forEach ( ( checkbox ) => {
418418 expect ( checkbox ) . toHaveAttribute (
419419 'aria-checked' ,
@@ -463,7 +463,7 @@ describe(
463463 /> )
464464
465465 await waitFor ( ( ) => {
466- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
466+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
467467
468468 // Click on User Group (id: 3) which is not assigned
469469 fireEvent . click ( checkboxes [ 2 ] )
@@ -490,7 +490,7 @@ describe(
490490 /> )
491491
492492 await waitFor ( ( ) => {
493- const checkboxes = screen . getAllByTestId ( 'scopeInput ' )
493+ const checkboxes = screen . getAllByTestId ( 'orgGroupInput ' )
494494
495495 // Click on Admin Group (id: 1) which is assigned
496496 fireEvent . click ( checkboxes [ 0 ] )
0 commit comments