Inserts Block
The resulting block id is yielded
Block type
Optional
Block name (used to search)
cy.insertBlock('core/heading').then(id => { cy.get(`#${id}`).click().type('A quick brown fox');}); Copy
cy.insertBlock('core/heading').then(id => { cy.get(`#${id}`).click().type('A quick brown fox');});
Inserts Block
The resulting block id is yielded