Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Bartik theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2014 at 13:17 UTC
Updated:
29 Jul 2014 at 23:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mparker17Do we have automated tests for themes?
To manually test:
node/add/articleand add an article. Give it some taxonomy terms ("Tags").admin/structure/types/manage/article/displayand change the Label of the Tags field to Inlinefield-label inline.Comment #2
mparker17Patch attached.
Comment #3
mparker17Comment #4
star-szrThis looks great, thanks @mparker17! Regarding automated tests for themes the short answer is no :(. #2099579: Discuss automated visual regression testing is the first issue that comes to mind related to that. It sounds like in this case it would need to be paired with a "scenario" to reproduce the bug as well.
Markup before patch (including twig_debug information):
Markup after patch (including twig_debug information):
Comment #5
star-szrAnd here's the key difference since I didn't realize that was going to look so blobby:
Before:
<h3>Tags: </h3>After:
<h3 class="field-label inline">Tags: </h3>Comment #6
star-szrOh, one more thing to change outside the context of the patch, the docblock template variable name needs to be corrected.
Comment #7
mparker17@Cottser awesome thanks!
Comment #8
webchickNice catch. It's too bad we can't test for this. :(
Committed and pushed to 8.x. Thanks!