Options
All
  • Public
  • Public/Protected
  • All
Menu

Module commands/check-post-exists

Index

Functions

  • checkPostExists(postData: { postType?: string; title: string }): void
  • Check Post Exists

    example

    Check for the post, without spefifying second parameer.

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

    Check for the page.

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

    Parameters

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

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

      • Optional postType?: string
      • title: string

    Returns void

Generated using TypeDoc