We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7354c12 commit 2ecc290Copy full SHA for 2ecc290
src/app/issues/issue-106.spec.ts
@@ -16,7 +16,7 @@ export class TestSelectComponent {
16
}
17
18
19
-it('should show hidden text', async () => {
+it('https://github.com/testing-library/angular-testing-library/issues/106', async () => {
20
await render(TestSelectComponent);
21
const toggle = screen.getByTestId('toggle');
22
const hiddenText = screen.queryByTestId('getme');
@@ -28,5 +28,8 @@ it('should show hidden text', async () => {
28
// await waitFor(() => expect(hiddenText).not.toBeNull());
29
30
// succeeds
31
- await waitFor(() => expect(screen.queryByTestId('getme')).not.toBeNull());
+ // await waitFor(() => expect(screen.queryByTestId('getme')).not.toBeNull());
32
+
33
+ // better
34
+ screen.getByTestId('getme');
35
});
0 commit comments