Skip to content

Issue with the insertBlock command on the latest trunk version of WordPress #91

@dkotter

Description

@dkotter

Describe the bug

In a recent test (see here) I utilized the insertBlock command to insert an Image block. This worked fine on WP 5.7 and WP latest but failed on WP trunk.

The error message we got was Expected to find element: .wp-block[data-type="core-image"], but never found it. But looking at the image that was provided, it seems the block editor had an error:

Image processing Tests -- Can generate images in the media modal (failed)

I was not able to reproduce the same issue locally but I'm assuming this is probably related to the changes made in #89.

Note I changed the above linked test to get around the issue but if this is a larger issue around WP 6.2, I'm assuming more tests will start to fail once that is released.

Steps to Reproduce

I couldn't reproduce while running locally but see the link I gave above to view a test run on GitHub that failed

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions