insertBlock Command doesn't work with block variations that have multiple backslashes #112
Open
1 task done
Labels
type:bug
Something isn't working.
Describe the bug
When trying to use
insertBlock
to insert a block variation with multiple backslashes (i.e.core/query/10up/content-grid
, the block cannot be found in the inserter, as the first backslash is being converted to a dash (-
) when generating the search selector, making the selector fail.Steps to Reproduce
10up/post-grid
cy.insertBlock('core/query/10up/post-grid')
generates an invalid selectorScreenshots, screen recording, code snippet
Block Variation Registration example
Environment information
No response
WordPress information
I'm using a completely fresh install of WordPress 6.3.2 using
wp-env
Code of Conduct
The text was updated successfully, but these errors were encountered: