Create Post in Classic Editor
Post data.
cy.classicCreatePost({ title: 'Post title', content: 'Post content', beforeSave: () => { // Do something before save. }, postType: 'page', status: 'draft'}).then(postID => { cy.log(postID);}) Copy
cy.classicCreatePost({ title: 'Post title', content: 'Post content', beforeSave: () => { // Do something before save. }, postType: 'page', status: 'draft'}).then(postID => { cy.log(postID);})
Create Post in Classic Editor