Options
All
  • Public
  • Public/Protected
  • All
Menu

Module commands/insert-block

Index

Functions

Functions

  • insertBlock(type: string, name?: string): void
  • Inserts Block

    The resulting block id is yielded

    example
    cy.insertBlock('core/heading').then(id => {
    cy.get(`#${id}`).click().type('A quick brown fox');
    });

    Parameters

    • type: string

      Block type

    • Optional name: string

      Block name (used to search)

    Returns void

Generated using TypeDoc