diff --git a/modules/oe_whitelabel_list_pages/tests/src/Functional/ListPagesTest.php b/modules/oe_whitelabel_list_pages/tests/src/Functional/ListPagesTest.php index 2b7cbb4e..c907f66f 100644 --- a/modules/oe_whitelabel_list_pages/tests/src/Functional/ListPagesTest.php +++ b/modules/oe_whitelabel_list_pages/tests/src/Functional/ListPagesTest.php @@ -125,7 +125,7 @@ protected function createListPage(): NodeInterface { * Container with the expected elements. */ protected function assertFacetsSummaryTitle(int $expected_count, ElementInterface $container): void { - $title = $container->find('css', 'div.col-md-6.col-xl-8 h4'); + $title = $container->find('css', 'div.col-md-6.col-xl-8 h2'); $text = $title->find('css', 'span.text-capitalize'); $this->assertSame( diff --git a/templates/list_pages/node--oe-list-page--full.html.twig b/templates/list_pages/node--oe-list-page--full.html.twig index 4053217c..b330db09 100644 --- a/templates/list_pages/node--oe-list-page--full.html.twig +++ b/templates/list_pages/node--oe-list-page--full.html.twig @@ -25,10 +25,10 @@
-

+

{{ label }} ({{ content['extra_field_oe_list_page_total_count:node:oe_list_page'] }}) -

+
{% set selected_filters %} {{ content['extra_field_oe_list_page_selected_filters:node:oe_list_page']|merge({'#theme': 'field__bare'}) }} diff --git a/templates/overrides/search/block--facets-summary-block.html.twig b/templates/overrides/search/block--facets-summary-block.html.twig index 3a2bca49..012c2639 100644 --- a/templates/overrides/search/block--facets-summary-block.html.twig +++ b/templates/overrides/search/block--facets-summary-block.html.twig @@ -14,7 +14,10 @@ {{ title_prefix }} {% if label %}
-

{{ label }} {{ results_count }}

+

+ {{ label }} + {{ results_count }} +

{% endif %} {{ title_suffix }} diff --git a/tests/src/Functional/FacetsRenderTest.php b/tests/src/Functional/FacetsRenderTest.php index 7bc41ee5..c5ace10b 100644 --- a/tests/src/Functional/FacetsRenderTest.php +++ b/tests/src/Functional/FacetsRenderTest.php @@ -70,7 +70,7 @@ public function testFacetsSummaryBlock(): void { $this->drupalGet('search-api-test-fulltext'); $assert = $this->assertSession(); - $assert->elementTextContains('css', 'main h4', $block->label()); + $assert->elementTextContains('css', 'main h2', $block->label()); $assert->elementTextContains('css', 'span.source-summary-count', '(5)'); }