Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic Create Post command #65

Merged
merged 2 commits into from
Jun 9, 2022
Merged

Classic Create Post command #65

merged 2 commits into from
Jun 9, 2022

Conversation

cadic
Copy link
Contributor

@cadic cadic commented May 27, 2022

Description of the Change

Adds classicCreatePost command

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

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Added - classicCreatePost command

@cadic cadic self-assigned this Jun 3, 2022
@cadic cadic added this to the Future Release milestone Jun 3, 2022
@cadic cadic requested review from a team and iamdharmesh and removed request for a team June 3, 2022 14:23
@cadic cadic marked this pull request as ready for review June 3, 2022 14:23
Copy link
Member

@iamdharmesh iamdharmesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this @cadic, Code looks good to me 🚀. just added a minor question and wanted to know your thoughts on it.

@cadic cadic merged commit 2e680d5 into trunk Jun 9, 2022
@cadic cadic deleted the command/classic-create-post branch June 9, 2022 09:11
github-actions bot pushed a commit that referenced this pull request Jun 9, 2022
@jeffpaul jeffpaul modified the milestones: Future Release, 0.1.0 Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants