$this->
triggerKeyUp('.ckeditor5-toolbar-item-blockQuote', 'ArrowDown'
);
$assert_session->
assertWaitOnAjaxRequest();
$allowed_with_blockquote =
$this->allowedElements . ' <blockquote>';
$assert_session->
fieldExists('filters[filter_html][settings][allowed_html]'
);
$this->
assertHtmlEsqueFieldValueEquals('filters[filter_html][settings][allowed_html]',
$allowed_with_blockquote);
$page->
pressButton('Save configuration'
);
$assert_session->
pageTextContains('The text format ckeditor5 has been updated.'
);
// Flush caches so the updated config can be checked.
drupal_flush_all_caches();
// Confirm that the tags required by the newly-added plugins were correctly
// saved.
$this->
assertSame($allowed_with_blockquote, FilterFormat::
load('ckeditor5'
)->
filters('filter_html'
)->
getConfiguration()['settings'
]['allowed_html'
]);
$page->
find('css', '[data-drupal-selector="edit-formats-ckeditor5"]'
)->
clickLink('Configure'
);
// And for good measure, confirm the correct tags are in the form field when
// returning to the form.
$this->
assertHtmlEsqueFieldValueEquals('filters[filter_html][settings][allowed_html]',
$allowed_with_blockquote);