diff --git a/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts b/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts
index 25bbdafda2506..a94f9137cfc65 100644
--- a/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts
+++ b/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts
@@ -14,14 +14,6 @@ describe(' request flyout', () => {
let testBed: RequestFlyoutTestBed;
const { httpSetup, httpRequestsMockHelpers } = setupEnvironment();
- beforeAll(() => {
- jest.useFakeTimers({ legacyFakeTimers: true });
- });
-
- afterAll(() => {
- jest.useRealTimers();
- });
-
beforeEach(async () => {
httpRequestsMockHelpers.setDefaultResponses();
@@ -34,12 +26,8 @@ describe(' request flyout', () => {
});
test('renders a json in flyout for a default policy', async () => {
- const { actions, component } = testBed;
+ const { actions } = testBed;
await actions.openRequestFlyout();
- await act(async () => {
- jest.advanceTimersByTime(0); // allow the flyout to open and form validation to run
- });
- component.update();
const json = actions.getRequestJson();
const expected = `PUT _ilm/policy/my_policy\n${JSON.stringify(
diff --git a/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/helpers/actions/request_flyout_actions.ts b/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/helpers/actions/request_flyout_actions.ts
index f8004f0076788..ca79d52741595 100644
--- a/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/helpers/actions/request_flyout_actions.ts
+++ b/x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/helpers/actions/request_flyout_actions.ts
@@ -15,7 +15,6 @@ export const createRequestFlyoutActions = (testBed: TestBed) => {
const openRequestFlyout = async () => {
await act(async () => {
find('requestButton').simulate('click');
- jest.advanceTimersByTime(0); // Wait for the flyout to open and form validation to run
});
component.update();
};