File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -230,15 +230,15 @@ export async function testWaitFors() {
230
230
}
231
231
232
232
export async function testWithin ( ) {
233
- const sut = within ( document . body )
234
- sut . queryAllByLabelText ( 'Some label' )
233
+ const container = within ( document . body )
234
+ container . queryAllByLabelText ( 'Some label' )
235
235
236
- sut . getByText ( 'Click me' )
237
- sut . getByText < HTMLButtonElement > ( 'Click me' )
238
- sut . getAllByText < HTMLButtonElement > ( 'Click me' )
236
+ container . getByText ( 'Click me' )
237
+ container . getByText < HTMLButtonElement > ( 'Click me' )
238
+ container . getAllByText < HTMLButtonElement > ( 'Click me' )
239
239
240
- await sut . findByRole ( 'button' , { name : / c l i c k m e / i} )
241
- sut . getByRole < HTMLButtonElement > ( 'button' , { name : / c l i c k m e / i} )
240
+ await container . findByRole ( 'button' , { name : / c l i c k m e / i} )
241
+ container . getByRole < HTMLButtonElement > ( 'button' , { name : / c l i c k m e / i} )
242
242
}
243
243
244
244
/*
You can’t perform that action at this time.
0 commit comments