[APM] Disable flaky useFetcher test (#70638)
This commit is contained in:
parent
a921bbf4c2
commit
fa70afb5ef
1 changed files with 19 additions and 18 deletions
|
@ -58,28 +58,29 @@ describe.skip('useFetcher', () => {
|
||||||
expect(hook.result.current).toEqual(true);
|
expect(hook.result.current).toEqual(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('is true for minimum 1000ms', () => {
|
// Disabled because it's flaky: https://github.com/elastic/kibana/issues/66389
|
||||||
hook = renderHook((isLoading) => useDelayedVisibility(isLoading), {
|
// it('is true for minimum 1000ms', () => {
|
||||||
initialProps: false,
|
// hook = renderHook((isLoading) => useDelayedVisibility(isLoading), {
|
||||||
});
|
// initialProps: false,
|
||||||
|
// });
|
||||||
|
|
||||||
hook.rerender(true);
|
// hook.rerender(true);
|
||||||
|
|
||||||
act(() => {
|
// act(() => {
|
||||||
jest.advanceTimersByTime(100);
|
// jest.advanceTimersByTime(100);
|
||||||
});
|
// });
|
||||||
|
|
||||||
hook.rerender(false);
|
// hook.rerender(false);
|
||||||
act(() => {
|
// act(() => {
|
||||||
jest.advanceTimersByTime(900);
|
// jest.advanceTimersByTime(900);
|
||||||
});
|
// });
|
||||||
|
|
||||||
expect(hook.result.current).toEqual(true);
|
// expect(hook.result.current).toEqual(true);
|
||||||
|
|
||||||
act(() => {
|
// act(() => {
|
||||||
jest.advanceTimersByTime(100);
|
// jest.advanceTimersByTime(100);
|
||||||
});
|
// });
|
||||||
|
|
||||||
expect(hook.result.current).toEqual(false);
|
// expect(hook.result.current).toEqual(false);
|
||||||
});
|
// });
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue