.../src/FunctionalJavascript/CKEditor5AllowedTagsTest.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php index 80b0636fcf..f67242f4e6 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php @@ -435,7 +435,7 @@ public function testFullHtml() { // Add a node with text rendered via the Plain Text format. $this->drupalGet('node/add'); $page->fillField('title[0][value]', 'My test content'); - $page->fillField('body[0][value]', '
'); + $page->fillField('body[0][value]', ''); $page->pressButton('Save'); // Configure Full HTML text format to use CKEditor 5. @@ -458,7 +458,8 @@ public function testFullHtml() { // But note that the `style` attribute was stripped by // \Drupal\editor\EditorXssFilter\Standard. - $assert_session->responseContains(''); + var_dump($this->getRawContent()); + $assert_session->responseContains(''); // Ensure attributes are retained after enabling link plugin. $this->drupalGet('admin/config/content/formats/manage/full_html'); @@ -470,7 +471,7 @@ public function testFullHtml() { $this->drupalGet('node/1/edit'); $page->pressButton('Save'); - $assert_session->responseContains(''); + $assert_session->responseContains(''); // Configure Basic HTML text format to use CKE5 and enable the link plugin. $this->drupalGet('admin/config/content/formats/manage/basic_html'); @@ -492,8 +493,8 @@ public function testFullHtml() { $page->pressButton('Save'); // The `style` and foo` attributes should have been removed, as should the - // `` tag. - $assert_session->responseContains(''); + // `` tag. But the `dir="ltr"` attribute should have been retained. + $assert_session->responseContains(''); } }