Testing: Add automated testing for Format API #11583
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Milestone
In #11110 we reported a bunch of missing unit test for the new Format API. @Pixelrobin opened #11562 which is going to resolve this issue.
We also miss end to end tests which would help to prevent future regressions and ensure all external plugins can safely use provided API. @iseulde shared an example for the custom format registration in #11488. We can reuse this code to build a suite of e2e tests for Format API. Code looks this way:
In the past we built a few custom plugins which are used with e2e tests and cover different aspects of extensibility:
They also have the corresponding test suites:
We should create a new plugin called
format-api
which uses code shared earlier, registered in PHP file. This plugin should be activated only inside a test suite calledformat-api.test.js
. The tests themselves should ensure:The text was updated successfully, but these errors were encountered: