In #2953656: No ability to control "extra fields" with Layout Builder, the ability to place blocks representing "extra fields" on entities was added. The category that these block plugins appeared in is "Content", which previously matched the category that normal fields were placed in.
I know that there was a recent issue where the normal fields category name was changed from "Content" to "Content fields" (I can't find it). But this change has left the extra field blocks alone in the "Content" category:
The category for this block should be updated to be "Content fields"
Comment | File | Size | Author |
---|---|---|---|
#18 | extra-field-block-category-label-3020572-18-PASS.patch | 4.86 KB | mark_fullmer |
#18 | extra-field-block-category-label-3020572-18-FAIL.patch | 1.48 KB | mark_fullmer |
Screen Shot 2018-12-14 at 9.20.07 AM.png | 33.11 KB | bkosborne |
Comments
Comment #2
bkosborneAh, found the issue where the label was changed: #2978939: Change 'field_block' block plugins to use "[entity_type] - fields" category to avoid confusion with other blocks
Comment #3
bkosborneComment #5
bkosbornemissing use statement.
Comment #6
bkosborneComment #7
tim.plunkettFix looks good, NW for tests
Comment #9
tim.plunkettComment #10
mark_fullmerTest added -- verifies that an extra field exists within the "Content fields" category.
Comment #11
johnwebdev CreditAttribution: johnwebdev commented== => ===
Use single quotes.
We should omit the message.
Instead of iterating each details element, we could just grab the details element with summary = 'Content fields' by xPath, and assert it contains Extra label.
Comment #12
mark_fullmerGood call on making the test more efficient by targeting via xpath, rather than iterating. All suggested changes are addressed here.
Comment #13
tim.plunkettCan you post a version of the patch with just the test changes, to prove they catch the bug? Also include the full patch in the same comment so the testbot doesn't get confused
Comment #14
mark_fullmerGood call, Tim. Patch added with only the test changes.
Comment #17
tim.plunkettIt's
Add block
now. Let's get another pair of patches. And if you upload the failing one first, the issue will stay at Needs Review instead of marking it back to Needs WorkComment #18
mark_fullmerUnderstood!
Comment #20
tim.plunkettLooks good to me, thanks!
Comment #21
catchCommitted 63148fa and pushed to 8.8.x. Thanks!