$page->
selectFieldOption('editor[editor]', 'ckeditor5'
);
$assert_session->
assertWaitOnAjaxRequest();
$assert_session->
pageTextContains($filter_warning);
// Disable the incompatible filter.
$page->
uncheckField($incompatible_filter_name);
// Confirm there are no longer any warnings.
$assert_session->
waitForElementRemoved('css', '[data-drupal-messages] [role="alert"]'
);
// Confirm the text format can be saved.
$this->
saveNewTextFormat($page,
$assert_session);
} /**
* Tests that when image uploads were enabled, they remain enabled.
*/
public function testImageUploadsRemainEnabled(): void
{ FilterFormat::
create([ 'format' => 'editor_with_image_uploads',
'name' => 'Text Editor with image uploads enabled',
])->
save();
Editor::
create([