Rethink table test utils. #3240
Labels
package:table
resolution:duplicate
This issue is a duplicate of another issue and was merged into it.
status:discussion
type:question
This issue asks a question (how to...).
As @Reinmar pointed-out: ckeditor/ckeditor5-table#127 (comment).
The table tests might not be easy to read because of use
modelTable()
helpers (as I think).Those methods were created to quickly write table (layout) tests so instead of writing:
The helper creates proper structure:
Note: similar helper is created for the view which properly stub table string with all widget markup.
This helper can create also proper
<thead>
/<tobdy>
section (for the view), add arbitrary attributes to the table cell. And will also create a table with other children then<paragraph>
if they are provided as content.While it is easier to write them other devs have to learn them to know what happens in some cases.
My question is: do we have some other ideas for the above?
The text was updated successfully, but these errors were encountered: