Skip to content

Commit

Permalink
Fixes #36451 - AnsibleVariableOverrides.js test failures
Browse files Browse the repository at this point in the history
(cherry picked from commit 3526a1f)
  • Loading branch information
MariaAga authored and nofaralfasi committed Aug 9, 2023
1 parent 8097e77 commit 901016e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
const TestComponent = withRedux(withMockedProvider(AnsibleVariableOverrides));

describe('AnsibleVariableOverrides', () => {
it('should show skeleton when page is loading', () => {
it('should show skeleton when page is loading', async () => {
const { container } = render(
<TestComponent
hostId={hostId}
Expand All @@ -31,6 +31,8 @@ describe('AnsibleVariableOverrides', () => {
expect(
container.getElementsByClassName('react-loading-skeleton')
).toHaveLength(5);

await waitFor(tick);
});
it('should load', async () => {
render(
Expand Down

0 comments on commit 901016e

Please sign in to comment.