Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions test/e2e/specs/editor/various/autosave.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,25 +327,10 @@
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' )
).toContainText(

Check failure on line 333 in test/e2e/specs/editor/various/autosave.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 3

[chromium] › specs/editor/various/autosave.spec.js:282:2 › Autosave › shouldn't conflict with server-side autosave

1) [chromium] › specs/editor/various/autosave.spec.js:282:2 › Autosave › shouldn't conflict with server-side autosave Error: expect(locator).toContainText(expected) failed Locator: locator('.components-notice__content') Expected substring: "There is an autosave of this post that is more recent than the version below." Received string: "The backup of this post in your browser is different from the version below.Restore the backup" Timeout: 5000ms Call log: - Expect "toContainText" with timeout 5000ms - waiting for locator('.components-notice__content') 9 × locator resolved to <div class="components-notice__content">…</div> - unexpected value "The backup of this post in your browser is different from the version below.Restore the backup" 331 | await expect( 332 | page.locator( '.components-notice__content' ) > 333 | ).toContainText( | ^ 334 | 'There is an autosave of this post that is more recent than the version below.' 335 | ); 336 | } ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/autosave.spec.js:333:5
'There is an autosave of this post that is more recent than the version below.'
);
} );
Expand Down
Loading