Skip to content
Merged
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
10 changes: 9 additions & 1 deletion test/e2e/specs/editor/various/revisions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,14 +959,22 @@ test.describe( 'Post autosave shareable URLs with revisions disabled', () => {
page,
requestUtils,
} ) => {
// The post must be published: when the post author autosaves their
// own draft, WordPress updates the draft in place instead of storing
// an autosave revision, so no autosave would exist to open. It must
// also be backdated because the editor deletes an autosave that is
// not strictly newer than the post on load, and the post and the
// autosave can otherwise be created within the same second.
// See https://github.com/WordPress/gutenberg/issues/81157.
const post = await requestUtils.rest( {
method: 'POST',
path: '/wp/v2/posts',
data: {
title: 'Autosave URL Test',
content:
'<!-- wp:paragraph --><p>Saved content</p><!-- /wp:paragraph -->',
status: 'draft',
status: 'publish',
date: '2024-01-01T00:00:00',
},
} );
const autosave = await requestUtils.rest( {
Expand Down
Loading