File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export class TestSelectComponent {
16
16
}
17
17
}
18
18
19
- it ( 'should show hidden text ' , async ( ) => {
19
+ it ( 'https://github.com/testing-library/angular-testing-library/issues/106 ' , async ( ) => {
20
20
await render ( TestSelectComponent ) ;
21
21
const toggle = screen . getByTestId ( 'toggle' ) ;
22
22
const hiddenText = screen . queryByTestId ( 'getme' ) ;
@@ -28,5 +28,8 @@ it('should show hidden text', async () => {
28
28
// await waitFor(() => expect(hiddenText).not.toBeNull());
29
29
30
30
// succeeds
31
- await waitFor ( ( ) => expect ( screen . queryByTestId ( 'getme' ) ) . not . toBeNull ( ) ) ;
31
+ // await waitFor(() => expect(screen.queryByTestId('getme')).not.toBeNull());
32
+
33
+ // better
34
+ screen . getByTestId ( 'getme' ) ;
32
35
} ) ;
You can’t perform that action at this time.
0 commit comments