From f0b892e701d57437767b887de69256de493793fb Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Wed, 4 Dec 2019 14:17:37 +1100 Subject: [PATCH] Updated unit tests. --- .../components/post-preview-button/index.js | 3 +- .../test/__snapshots__/index.js.snap | 138 ++++++++++++++---- .../post-preview-button/test/index.js | 95 +++++++----- 3 files changed, 162 insertions(+), 74 deletions(-) diff --git a/packages/editor/src/components/post-preview-button/index.js b/packages/editor/src/components/post-preview-button/index.js index 0d75381af2c9b..8913aa4e1c213 100644 --- a/packages/editor/src/components/post-preview-button/index.js +++ b/packages/editor/src/components/post-preview-button/index.js @@ -190,7 +190,6 @@ export class PostPreviewButton extends Component { className="editor-block-preview__new-tab" href={ href } target={ this.getWindowTarget() } - disabled={ ! isSaveable } onClick={ this.openPreviewInNewTab } > { _x( 'Open preview in new tab', 'imperative verb' ) } @@ -200,7 +199,7 @@ export class PostPreviewButton extends Component {