From 4cf66f254b95ebbfbfb55d8596658afe48cf78e4 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Thu, 30 Apr 2026 13:05:17 +0530 Subject: [PATCH] fix: Remove condition from 'autosave' e2e test --- test/e2e/specs/editor/various/autosave.spec.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/e2e/specs/editor/various/autosave.spec.js b/test/e2e/specs/editor/various/autosave.spec.js index 21cf4027ef8cb0..935b6499bbff94 100644 --- a/test/e2e/specs/editor/various/autosave.spec.js +++ b/test/e2e/specs/editor/various/autosave.spec.js @@ -327,21 +327,6 @@ test.describe( 'Autosave', () => { await page.reload(); await page.waitForFunction( () => window?.wp?.data ); - // FIXME: Occasionally, upon reload, there is no server-provided - // autosave value available, despite our having previously explicitly - // autosaved. The reasons for this are still unknown. Since this is - // unrelated to *local* autosave, until we can understand them, we'll - // drop this test's expectations if we don't have an autosave object - // available. - const stillHasRemoteAutosave = await page.evaluate( - () => - window.wp.data.select( 'core/editor' ).getEditorSettings() - .autosave - ); - if ( ! stillHasRemoteAutosave ) { - return; - } - // Only remote autosave notice should be applied. await expect( page.locator( '.components-notice__content' )