Skip to content

Commit

Permalink
Update sessionStorage key used in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jul 29, 2020
1 parent e117434 commit c109577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/various/autosave.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function clearSessionStorage() {
async function readSessionStorageAutosave( postId ) {
return page.evaluate(
( key ) => window.sessionStorage.getItem( key ),
`wp-autosave-block-editor-post-${ postId }`
`wp-autosave-block-editor-post-${ postId ? postId : 'auto-draft' }`
);
}

Expand Down

0 comments on commit c109577

Please sign in to comment.