UNPKG

@wordpress/e2e-test-utils

Version:
21 lines (19 loc) 588 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCurrentPostContent = getCurrentPostContent; var _wpDataSelect = require("./wp-data-select"); /** * Internal dependencies */ /** * Returns a promise which resolves with the current post content (HTML string). * * @return {Promise} Promise resolving with current post content markup. */ async function getCurrentPostContent() { const post = await (0, _wpDataSelect.wpDataSelect)('core/editor', 'getCurrentPost'); return post.content; } //# sourceMappingURL=get-current-post-content.js.map