@wordpress/e2e-test-utils
Version:
End-To-End (E2E) test utils for WordPress.
21 lines (19 loc) • 588 B
JavaScript
;
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