$this->
assertHtmlEsqueFieldValueEquals('filters[filter_html][settings][allowed_html]', '<br> <p> <h2> <h3> <h4> <h5> <h6> <aside> <strong> <em> <blockquote>'
);
$allowed_html_field =
$assert_session->
fieldExists('filters[filter_html][settings][allowed_html]'
);
$this->
assertTrue($allowed_html_field->
hasAttribute('readonly'
));
// Adding tags to Source Editing's editable tags that are already supported
// by enabled CKEditor 5 plugins must trigger a validation error, and that
// error must be associated with the correct form item.
$source_edit_tags_field->
setValue('<aside><strong>'
);
$assert_session->
waitForText('The following tag(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: Bold (<strong>)'
);
$this->
assertTrue($page->
find('css', '[href^="#edit-editor-settings-plugins-ckeditor5-sourceediting"]'
)->
getParent()->
hasClass('is-selected'
));
$this->
assertSame('true',
$page->
findField('editor[settings][plugins][ckeditor5_sourceEditing][allowed_tags]'
)->
getAttribute('aria-invalid'
));
$this->
assertTrue($allowed_html_field->
hasAttribute('readonly'
));
// The same validation error appears when saving the form regardless of the
// immediate AJAX validation error above.
$page->
pressButton('Save configuration'
);
$assert_session->
pageTextContains('The following tag(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: Bold (<strong>)'
);
$this->
assertTrue($page->
find('css', '[href^="#edit-editor-settings-plugins-ckeditor5-sourceediting"]'
)->
getParent()->
hasClass('is-selected'
));
$this->
assertSame('true',
$page->
findField('editor[settings][plugins][ckeditor5_sourceEditing][allowed_tags]'
)->
getAttribute('aria-invalid'
));
$assert_session->
pageTextNotContains('The text format ckeditor5 has been updated'
);
// Wait for the "Source editing" vertical tab to appear, remove the already