Skip to content

Commit

Permalink
EWPP-4591: Fix footer behat method.
Browse files Browse the repository at this point in the history
  • Loading branch information
22Alexandra committed Aug 8, 2024
1 parent c633289 commit cb85615
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/src/Behat/OeThemeTestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,11 @@ public function setCorporateLibrary(string $component_library): void {
* 'European Union' or 'European Commission'.
*/
protected function getFooterType(): string {
$logo = $this->getSession()->getPage()->find('css', 'footer.ecl-site-footer .ecl-site-footer__logo-link picture');
return $logo->getAttribute('title');
$ec_footer_selector = $this->getSession()->getPage()->find('css', 'footer.ecl-site-footer.ecl-site-footer--split-columns');
if (!$ec_footer_selector) {
return 'European Union';
}
return 'European Commission';
}

/**
Expand Down

0 comments on commit cb85615

Please sign in to comment.