@wordpress/e2e-test-utils
Version:
End-To-End (E2E) test utils for WordPress.
11 lines • 449 B
JavaScript
/**
* 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.
*/
export 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