99 waitForElementToBeRemoved ,
1010 act ,
1111 within ,
12+ getQueriesForElement ,
1213} from '../..' ;
1314
1415interface HasRequiredProp {
@@ -306,6 +307,18 @@ const withinGet: Array<ReactTestInstance> = [
306307 within ( instance ) . getByRole ( 'button' ) ,
307308 within ( instance ) . getByA11yState ( { busy : true } ) ,
308309 within ( instance ) . getByA11yValue ( { min : 10 } ) ,
310+ getQueriesForElement ( instance ) . getByText ( 'Test' ) ,
311+ getQueriesForElement ( instance ) . getByDisplayValue ( 'Test' ) ,
312+ getQueriesForElement ( instance ) . getByPlaceholderText ( 'Test' ) ,
313+ getQueriesForElement ( instance ) . getByTestId ( 'Test' ) ,
314+ getQueriesForElement ( instance ) . getByA11yLabel ( 'Test' ) ,
315+ getQueriesForElement ( instance ) . getByLabelText ( 'Test' ) ,
316+ getQueriesForElement ( instance ) . getByA11yHint ( 'Test' ) ,
317+ getQueriesForElement ( instance ) . getByHintText ( 'Test' ) ,
318+ getQueriesForElement ( instance ) . getByA11yRole ( 'button' ) ,
319+ getQueriesForElement ( instance ) . getByRole ( 'button' ) ,
320+ getQueriesForElement ( instance ) . getByA11yState ( { busy : true } ) ,
321+ getQueriesForElement ( instance ) . getByA11yValue ( { min : 10 } ) ,
309322] ;
310323
311324const withinGetAll : Array < ReactTestInstance [ ] > = [
@@ -321,6 +334,18 @@ const withinGetAll: Array<ReactTestInstance[]> = [
321334 within ( instance ) . getAllByRole ( 'button' ) ,
322335 within ( instance ) . getAllByA11yState ( { busy : true } ) ,
323336 within ( instance ) . getAllByA11yValue ( { min : 10 } ) ,
337+ getQueriesForElement ( instance ) . getAllByText ( 'Test' ) ,
338+ getQueriesForElement ( instance ) . getAllByDisplayValue ( 'Test' ) ,
339+ getQueriesForElement ( instance ) . getAllByPlaceholderText ( 'Test' ) ,
340+ getQueriesForElement ( instance ) . getAllByTestId ( 'Test' ) ,
341+ getQueriesForElement ( instance ) . getAllByA11yLabel ( 'Test' ) ,
342+ getQueriesForElement ( instance ) . getAllByLabelText ( 'button' ) ,
343+ getQueriesForElement ( instance ) . getAllByA11yHint ( 'Test' ) ,
344+ getQueriesForElement ( instance ) . getAllByHintText ( 'button' ) ,
345+ getQueriesForElement ( instance ) . getAllByA11yRole ( 'button' ) ,
346+ getQueriesForElement ( instance ) . getAllByRole ( 'button' ) ,
347+ getQueriesForElement ( instance ) . getAllByA11yState ( { busy : true } ) ,
348+ getQueriesForElement ( instance ) . getAllByA11yValue ( { min : 10 } ) ,
324349] ;
325350
326351const withinQuery : Array < ReactTestInstance | null > = [
@@ -336,6 +361,18 @@ const withinQuery: Array<ReactTestInstance | null> = [
336361 within ( instance ) . queryByRole ( 'button' ) ,
337362 within ( instance ) . queryByA11yState ( { busy : true } ) ,
338363 within ( instance ) . queryByA11yValue ( { min : 10 } ) ,
364+ getQueriesForElement ( instance ) . queryByText ( 'Test' ) ,
365+ getQueriesForElement ( instance ) . queryByDisplayValue ( 'Test' ) ,
366+ getQueriesForElement ( instance ) . queryByPlaceholderText ( 'Test' ) ,
367+ getQueriesForElement ( instance ) . queryByTestId ( 'Test' ) ,
368+ getQueriesForElement ( instance ) . queryByA11yLabel ( 'Test' ) ,
369+ getQueriesForElement ( instance ) . queryByLabelText ( 'button' ) ,
370+ getQueriesForElement ( instance ) . queryByA11yHint ( 'Test' ) ,
371+ getQueriesForElement ( instance ) . queryByHintText ( 'button' ) ,
372+ getQueriesForElement ( instance ) . queryByA11yRole ( 'button' ) ,
373+ getQueriesForElement ( instance ) . queryByRole ( 'button' ) ,
374+ getQueriesForElement ( instance ) . queryByA11yState ( { busy : true } ) ,
375+ getQueriesForElement ( instance ) . queryByA11yValue ( { min : 10 } ) ,
339376] ;
340377
341378const withinQueryAll : Array < ReactTestInstance [ ] > = [
@@ -351,6 +388,18 @@ const withinQueryAll: Array<ReactTestInstance[]> = [
351388 within ( instance ) . queryAllByRole ( 'button' ) ,
352389 within ( instance ) . queryAllByA11yState ( { busy : true } ) ,
353390 within ( instance ) . queryAllByA11yValue ( { min : 10 } ) ,
391+ getQueriesForElement ( instance ) . queryAllByText ( 'Test' ) ,
392+ getQueriesForElement ( instance ) . queryAllByDisplayValue ( 'Test' ) ,
393+ getQueriesForElement ( instance ) . queryAllByPlaceholderText ( 'Test' ) ,
394+ getQueriesForElement ( instance ) . queryAllByTestId ( 'Test' ) ,
395+ getQueriesForElement ( instance ) . queryAllByA11yLabel ( 'Test' ) ,
396+ getQueriesForElement ( instance ) . queryAllByLabelText ( 'Test' ) ,
397+ getQueriesForElement ( instance ) . queryAllByA11yHint ( 'Test' ) ,
398+ getQueriesForElement ( instance ) . queryAllByHintText ( 'Test' ) ,
399+ getQueriesForElement ( instance ) . queryAllByA11yRole ( 'button' ) ,
400+ getQueriesForElement ( instance ) . queryAllByRole ( 'button' ) ,
401+ getQueriesForElement ( instance ) . queryAllByA11yState ( { busy : true } ) ,
402+ getQueriesForElement ( instance ) . queryAllByA11yValue ( { min : 10 } ) ,
354403] ;
355404
356405const withinFind : Promise < ReactTestInstance > [ ] = [
@@ -366,6 +415,18 @@ const withinFind: Promise<ReactTestInstance>[] = [
366415 within ( instance ) . findByRole ( 'button' ) ,
367416 within ( instance ) . findByA11yState ( { busy : true } ) ,
368417 within ( instance ) . findByA11yValue ( { min : 10 } ) ,
418+ getQueriesForElement ( instance ) . findByText ( 'Test' ) ,
419+ getQueriesForElement ( instance ) . findByDisplayValue ( 'Test' ) ,
420+ getQueriesForElement ( instance ) . findByPlaceholderText ( 'Test' ) ,
421+ getQueriesForElement ( instance ) . findByTestId ( 'Test' ) ,
422+ getQueriesForElement ( instance ) . findByA11yLabel ( 'Test' ) ,
423+ getQueriesForElement ( instance ) . findByLabelText ( 'Test' ) ,
424+ getQueriesForElement ( instance ) . findByA11yHint ( 'Test' ) ,
425+ getQueriesForElement ( instance ) . findByHintText ( 'Test' ) ,
426+ getQueriesForElement ( instance ) . findByA11yRole ( 'button' ) ,
427+ getQueriesForElement ( instance ) . findByRole ( 'button' ) ,
428+ getQueriesForElement ( instance ) . findByA11yState ( { busy : true } ) ,
429+ getQueriesForElement ( instance ) . findByA11yValue ( { min : 10 } ) ,
369430] ;
370431
371432const withinFindAll : Promise < ReactTestInstance [ ] > [ ] = [
@@ -381,4 +442,16 @@ const withinFindAll: Promise<ReactTestInstance[]>[] = [
381442 within ( instance ) . findAllByRole ( 'button' ) ,
382443 within ( instance ) . findAllByA11yState ( { busy : true } ) ,
383444 within ( instance ) . findAllByA11yValue ( { min : 10 } ) ,
445+ getQueriesForElement ( instance ) . findAllByText ( 'Test' ) ,
446+ getQueriesForElement ( instance ) . findAllByDisplayValue ( 'Test' ) ,
447+ getQueriesForElement ( instance ) . findAllByPlaceholderText ( 'Test' ) ,
448+ getQueriesForElement ( instance ) . findAllByTestId ( 'Test' ) ,
449+ getQueriesForElement ( instance ) . findAllByA11yLabel ( 'Test' ) ,
450+ getQueriesForElement ( instance ) . findAllByLabelText ( 'Test' ) ,
451+ getQueriesForElement ( instance ) . findAllByA11yHint ( 'Test' ) ,
452+ getQueriesForElement ( instance ) . findAllByHintText ( 'Test' ) ,
453+ getQueriesForElement ( instance ) . findAllByA11yRole ( 'button' ) ,
454+ getQueriesForElement ( instance ) . findAllByRole ( 'button' ) ,
455+ getQueriesForElement ( instance ) . findAllByA11yState ( { busy : true } ) ,
456+ getQueriesForElement ( instance ) . findAllByA11yValue ( { min : 10 } ) ,
384457] ;
0 commit comments