UNPKG

@wordpress/e2e-test-utils

Version:
17 lines (16 loc) 613 B
"use strict"; 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