From 00cb2fb888d95a6a3420c81bed97d5c385c2eda8 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 29 Oct 2023 20:11:30 +0100 Subject: [PATCH] - --- tests/Controller/FormFieldLabelControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Controller/FormFieldLabelControllerTest.php b/tests/Controller/FormFieldLabelControllerTest.php index a2c25f196d..bfc76aee8f 100644 --- a/tests/Controller/FormFieldLabelControllerTest.php +++ b/tests/Controller/FormFieldLabelControllerTest.php @@ -167,7 +167,7 @@ public function testFieldsLabelsOnDetailPage() static::assertSelectorTextSame('.field-group.field-published-at .field-label > div', 'PublishedAt Lorem Ipsum', 'The "publishedAt" field defines its label as a translatable string with regular text (no HTML contents).'); // fields with a label defined as a string with HTML contents - static::assertSame('Tab 7', trim($crawler->filter('ul.nav-tabs #tablist-tab-tab-7')->html()), 'The "Tab 7" defines its label as a text string with HTML contents, which must be rendered instead of escaped.'); + static::assertSame('Tab 7', trim($crawler->filter('ul.nav-tabs #tablist-tab-tab-7')->html()), 'The "Tab 7" defines its label as a text string with HTML contents, which must be rendered instead of escaped.'); static::assertSame('#tab-tab-7', $crawler->filter('ul.nav-tabs #tablist-tab-tab-7')->attr('href'), 'Tabs with labels get IDs generated as the slugs of their labels but HTML tags must be removed.'); static::assertSame('Column 7', trim($crawler->filter('.form-column.column-7 .form-column-title-content')->html()), 'The "Column 7" defines its label as a text string with HTML contents, which must be rendered instead of escaped.'); static::assertSelectorNotExists('.form-column.column-7.form-column-no-header'); @@ -176,7 +176,7 @@ public function testFieldsLabelsOnDetailPage() static::assertSame(trim($crawler->filter('.field-group.field-author .field-label > div')->html()), 'Author Lorem Ipsum', 'The "author" field defines its label as regular string with HTML contents, which must be rendered instead of escaped (HTML is allowed in field labels).'); // fields with a label defined as a translatable string with HTML contents - static::assertSame('Tab 8', trim($crawler->filter('ul.nav-tabs #tablist-tab-tab-8')->html()), 'The "Tab 8" defines its label as a translatable string with HTML contents, which must be rendered instead of escaped.'); + static::assertSame('Tab 8', trim($crawler->filter('ul.nav-tabs #tablist-tab-tab-8')->html()), 'The "Tab 8" defines its label as a translatable string with HTML contents, which must be rendered instead of escaped.'); static::assertSame('#tab-tab-8', $crawler->filter('ul.nav-tabs #tablist-tab-tab-8')->attr('href'), 'Tabs with labels get IDs generated as the slugs of their labels but HTML tags must be removed.'); static::assertSame('Column 8', trim($crawler->filter('.form-column.column-8 .form-column-title-content')->html()), 'The "Column 8" defines its label as a translatable string with HTML contents, which must be rendered instead of escaped.'); static::assertSelectorNotExists('.form-column.column-8.form-column-no-header');