-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPENEUROPA-1695: Implement footer block. Apply ECL component #186
Conversation
language switcher: ".ecl-language-list" | ||
language switcher link: ".ecl-lang-select-sites__link .ecl-lang-select-sites__label" | ||
language switcher overlay: ".ecl-dialog__body" | ||
logo: "a.ecl-logo" | ||
page header: ".ecl-page-header__body" | ||
priorities dropdown menu: "#nav-menu-expandable-group-3 .ecl-navigation-menu__links" | ||
search box: ".demo-block-header-search" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be out of scope, why are we removing it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this PR missed attention: #176
So I did the same within this PR.
…making custom footer optional.
f62ab54
to
31cc465
Compare
32a21f0
to
4170159
Compare
6c255e9
to
76b6453
Compare
76b6453
to
ea319b6
Compare
* Theme override for the corporate block footer. | ||
* | ||
* Available variables: | ||
* - content: rendered footer pattern. * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo at end of line * - content: rendered footer pattern. *
use Symfony\Component\DomCrawler\Crawler; | ||
|
||
/** | ||
* Class CorporateBlocksFooterTest. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add meaningful class description.
'label_display' => '0', | ||
]; | ||
|
||
$render = $this->buildBlock('oe_footer', $config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should override here the block footer configuration object by providing test configuration, so we can make sure that the template styled the footer correctly. I propose to have just 2 links per link category and test labels.
$actual = $crawler->filter('footer.ecl-footer div.ecl-footer__corporate-top div.ecl-row div.ecl-footer__column'); | ||
$this->assertCount(3, $actual); | ||
$actual = $crawler->filter('footer.ecl-footer div.ecl-footer__corporate-bottom div.ecl-row ul.ecl-footer__list li.ecl-footer__list-item'); | ||
$this->assertCount(7, $actual); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the comment above we should add here assertions that assert links and labels are styled correctly.
68f02d3
to
c6ec15f
Compare
c6ec15f
to
2699544
Compare
OPENEUROPA-1695
Description
Change log
Commands