Test coverage overview (always work in progress). Striked-through items are already done.
Basic functionality
Basic CRUD operations on entity browserValidatorsExisting selectionDefault widgetDynamically generated permissionsDynamically generated routes
Configuration UI
Display plugins
iFrame- Modal
- Standalone
Selection display
No displayMulti step display(not in main ConfigUI class but in its own)- View selection display (partly tested in EntityBrowserTest.php)
Widget
- View
Upload- Entity form
Individual plugins functionality
Widgets
- Upload (partly tested in PluginsTest.php)
- View (partly tested in PluginsTest.php)
- Entity form
Selection displays
- Multi step display (partly tested in MultiDisplayTest.php)
- View
- No display
Widget selectors
- Tabs (partly tested EntityBrowserTest.php)
- Dropdown (partly tested EntityBrowserTest.php)
Single
Displays
- iFrame (partly tested in EntityBrowserUITest.php and PluginsTest.php)
ModalStandalone
Field widgets
- Entity reference
File field: #2801163: Missing preview image in widgetImage field: #2801163: Missing preview image in widget
Integrations
Inline entity form
IEF use existing (partly tested in InlineEntityIntegrationTest.php, test full flow: entities are selected, IEF table is automatically reloaded, correct entities appear in it)High prio: Entity browser on a field inside IEF- High prio: Entity browser on a field inside nested IEF (2+ levels up)
- High prio: Entity browser on a field inside IEF, more than one IEF field on the entity (open EB in one, update, open in the other, update, have both open at the same time, update, make sure referenced entities are correct - they are not leaking between fields)
Paragraphs
High prio: Entity browser on a paragraph fieldHigh prio: Entity browser on a nested paragraph fieldHigh prio: Multi value paragraph, more than one value using EB, make sure values are not leaking between them
Comments
Comment #2
slashrsm commentedWhile working on this I realized (what I already suspected before) that our tests are scattered all around the place. It would be nice to re-organize the structure a bit. Maybe we could use the structure above and groups tests based on that.
Comment #3
mtodor commentedI would like to add just few points that could be helpful when tests are written, to have them on mind:
Comment #4
thenchev commentedCreated issue for paragraphs and will look into it #2826310: Write tests for paragraphs integration
Comment #5
slashrsm commentedComment #6
marcoscanoUpdating the IS. It looks like the paragraph tests were done in #2826310: Write tests for paragraphs integration
Comment #7
marcoscanoUpdated IS. It looks like the first two cases of IEF integration were done in #2764889: Entity Browser widget loses selected images in inline entity form.
Comment #8
oknateComment #9
oknate