@10up/cypress-wp-utils
    Preparing search index...

    Function insertBlock

    • Inserts Block

      The resulting block id is yielded

      Parameters

      • type: string

        Block type

      • Optionalname: string

        Block name (used to search)

      Returns void

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