Problem/Motivation
Make tests for UI patterns sources from the main module.
Remaining tasks
- Test derived sources (field properties, derivable contexts)
- Test rendering : verify entity context is correctly required and handled (and correctly passed through to the data it may retrieve, if revelant). Verify the compatibility with prop types and the returned data. Verify conversion is working.
Following Sources needs test data fixtures are needed
- AttributesWidget
- CheckboxWidget
- ListTextareaWidget
- NumberWidget
- PathSource
- SelectWidget
- UrlWidget
- WysiwygWidget
- EntityFieldSource
- EntityLinksSource
- FieldPropertySource
Following Sources needs test needs extra data to work and my be tested in functional test
- BreadcrumbSource
- BlockSource
Issue fork ui_patterns-3467657
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
christian.wiedemann commentedComment #3
christian.wiedemann commentedComment #4
christian.wiedemann commentedComment #5
christian.wiedemann commentedComment #6
just_like_good_vibesi take this one too
Comment #7
just_like_good_vibespostponed to beta3
Comment #9
just_like_good_vibesHello,
i am still adding source tests in the MR, in progress ...
still missing tests for those sources :
Comment #10
just_like_good_vibesAlso, in this MR :
- redistributed the tests between modules "ui_patterns_field_formatters" and "ui_patterns_latyouts"
- cleaned some files in tests, now unused
- update a component in test module "ui_pattterns_test"
Comment #11
just_like_good_vibesfinally... please review :)
a few items may be missing :
- Test of BreadcrumbSource
- Test of DerivableContext deriver
Comment #13
christian.wiedemann commentedComment #14
christian.wiedemann commentedComment #15
just_like_good_vibesComment #16
pdureau commented