@wordpress/e2e-test-utils
Version:
End-To-End (E2E) test utils for WordPress.
17 lines (16 loc) • 613 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.publishPostWithPrePublishChecksDisabled = publishPostWithPrePublishChecksDisabled;
/**
* Publishes the post without the pre-publish checks,
* resolving once the request is complete (once a notice is displayed).
*
* @return {Promise} Promise resolving when publish is complete.
*/
async function publishPostWithPrePublishChecksDisabled() {
await page.click('.editor-post-publish-button');
return page.waitForSelector('.components-snackbar');
}
//# sourceMappingURL=publish-post-with-pre-publish-checks-disabled.js.map