@10up/cypress-wp-utils
    Preparing search index...
    • Check Post Exists

      Parameters

      • postData: { postType?: string; title: string }

        { title - Post Title, postType - Post type, }

      Returns void

      Check for the post, without spefifying second parameer.

      cy.checkPostExists({
      title: 'Hello world!',
      })

      Check for the page.

      cy.checkPostExists({
      title: 'Sample Page',
      postType: 'page',
      })