Skip to content

Commit

Permalink
Add publish step to preview with custom fields test (#14894)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan authored and aduth committed Apr 16, 2019
1 parent 1e23b17 commit c6fda90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/e2e-tests/specs/preview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ describe( 'Preview with Custom Fields enabled', async () => {
await editorPage.keyboard.press( 'Tab' );
await editorPage.keyboard.type( 'content 1' );

// Publish the post and then close the publish panel.
await publishPost();
await page.waitForSelector( '.editor-post-publish-panel' );
await page.click( '.editor-post-publish-panel__header button' );

// Open the preview page.
const previewPage = await openPreviewPage( editorPage );

Expand Down

0 comments on commit c6fda90

Please sign in to comment.