Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2ecc290

Browse files
test: refactor issue 106
1 parent 7354c12 commit 2ecc290

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/app/issues/issue-106.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class TestSelectComponent {
1616
}
1717
}
1818

19-
it('should show hidden text', async () => {
19+
it('https://github.com/testing-library/angular-testing-library/issues/106', async () => {
2020
await render(TestSelectComponent);
2121
const toggle = screen.getByTestId('toggle');
2222
const hiddenText = screen.queryByTestId('getme');
@@ -28,5 +28,8 @@ it('should show hidden text', async () => {
2828
// await waitFor(() => expect(hiddenText).not.toBeNull());
2929

3030
// 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');
3235
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /