Skip to content

Commit e4b1f02

Browse files
authored
[Cloud Security] Fix configurations integration test error (elastic#187017)
## Summary It fixes elastic#187015 This PR fixes integration test error by wrapping the expect with the `waitFor` after the loading results.
1 parent ace2996 commit e4b1f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/cloud_security_posture/public/pages/configurations/configurations.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('<Findings />', () => {
6969
// loading findings
7070
await waitFor(() => expect(screen.getByText(/loading results/i)).toBeInTheDocument());
7171

72-
expect(screen.getByText(/2 findings/i)).toBeInTheDocument();
72+
await waitFor(() => expect(screen.getByText(/2 findings/i)).toBeInTheDocument());
7373

7474
expect(screen.getByText(finding1.resource.name)).toBeInTheDocument();
7575
expect(screen.getByText(finding1.resource.id)).toBeInTheDocument();

0 commit comments

Comments
 (0)