Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

PW Spec Migration: Gutenberg block upgrading #61171

Open dpasque opened 2 years ago

dpasque commented 2 years ago

Details

On the selenium framework, wp-calypso-gutenberg-upgrade-spec.js tests how block markup goes through the upgrade by copying markdown from popular blocks and pasting them onto an edge site.

We have this covered in part by all the new block smoke test cases. However, this doesn't cover breakages caused by the block markdown going through the upgrade transformation.

We should add a new spec that takes an existing post on a Gutenberg edge site and checks that there are no new errors post upgrade. This could start by checking the editor for block errors. In the future, we could also diff screenshots.

Checklist

Related

No response

dpasque commented 2 years ago

@fullofcaffeine You had mentioned interest in tackling this script -- still interested? I would love to help out however I can! I can also walk through some of the new block classes we have that might help with making the bin script that could regenerate the post.