From 1c7a21c1112129af8496e62a870298f8991ab1c6 Mon Sep 17 00:00:00 2001 From: Antonio De Marco Date: Wed, 25 Aug 2021 11:31:16 +0200 Subject: [PATCH] EWPP-1096: Fix bottom margin class on contact body field. --- templates/oe_contact/oe-contact--full.html.twig | 2 +- tests/Kernel/Paragraphs/ContactParagraphTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/oe_contact/oe-contact--full.html.twig b/templates/oe_contact/oe-contact--full.html.twig index 27d79f5b4..db706ec11 100644 --- a/templates/oe_contact/oe-contact--full.html.twig +++ b/templates/oe_contact/oe-contact--full.html.twig @@ -17,7 +17,7 @@
{% endif %} {% if entity.oe_body is not empty %} -
+
{{ content.oe_body }}
{% endif %} diff --git a/tests/Kernel/Paragraphs/ContactParagraphTest.php b/tests/Kernel/Paragraphs/ContactParagraphTest.php index 1ceae1431..e1561d053 100644 --- a/tests/Kernel/Paragraphs/ContactParagraphTest.php +++ b/tests/Kernel/Paragraphs/ContactParagraphTest.php @@ -137,7 +137,7 @@ public function testContact(): void { $this->assertCount(0, $crawler->filter('h2.ecl-u-type-heading-2')); // Assert rendering of the first contact. $this->assertEquals('General contact', trim($crawler->filter('div.ecl-row.ecl-u-mv-xl:nth-child(1) h3.ecl-u-type-heading-3.ecl-u-mt-none div')->html())); - $this->assertEquals('

General contact body text

', trim($crawler->filter('div.ecl-col-m-6 div.ecl-u-m-l:nth-child(1) div.ecl')->html())); + $this->assertEquals('

General contact body text

', trim($crawler->filter('div.ecl-col-m-6 div.ecl-u-mb-l:nth-child(1) div.ecl')->html())); $this->assertEquals('General contact Organisation', trim($crawler->filter('dl.ecl-description-list.ecl-description-list--horizontal:nth-child(2) dd.ecl-description-list__definition:nth-child(2) div')->html())); $this->assertEquals('general@example.com', trim($crawler->filter('dl.ecl-description-list.ecl-description-list--horizontal:nth-child(2) dd.ecl-description-list__definition:nth-child(4) div a')->html())); $this->assertEquals('Address of General contact, 1001 Brussels, Belgium', trim($crawler->filter('dl.ecl-description-list.ecl-description-list--horizontal:nth-child(2) dd.ecl-description-list__definition:nth-child(6) div span')->html())); @@ -145,7 +145,7 @@ public function testContact(): void { $this->assertContains('example_1.jpeg', $crawler->filter('div.ecl-col-m-5 figure.ecl-media-container img')->attr('src')); // Assert rendering of the second contact. $this->assertEquals('Press contact', trim($crawler->filter('div.ecl-row.ecl-u-mv-xl:nth-child(2) h3.ecl-u-type-heading-3.ecl-u-mt-none div')->html())); - $this->assertEquals('

Press contact body text

', trim($crawler->filter('div.ecl-col-12:nth-child(2) div.ecl-u-m-l div.ecl')->html())); + $this->assertEquals('

Press contact body text

', trim($crawler->filter('div.ecl-col-12:nth-child(2) div.ecl-u-mb-l div.ecl')->html())); // Set paragraph title and assert rendering is updated. $paragraph->set('field_oe_title', 'Contact paragraph Test')->save();