function CKEditor5TestBase::saveNewTextFormat

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5TestBase::saveNewTextFormat()
  2. 10 core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5TestBase::saveNewTextFormat()

Save the new text format.

7 calls to CKEditor5TestBase::saveNewTextFormat()
CKEditor5AllowedTagsTest::testAllowedTags in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php
Test filter_html allowed tags.
CKEditor5AllowedTagsTest::testEnablingToVersion5Validation in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php
Test enabling CKEditor 5 in a way that triggers validation.
CKEditor5AllowedTagsTest::testMediaElementAllowedTags in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php
Test that <drupal-media> is added to allowed tags when media embed enabled.
CKEditor5AllowedTagsTest::testSwitchToVersion5 in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5AllowedTagsTest.php
Confirm that switching to CKEditor 5 from another editor updates tags.
CKEditor5Test::testEditorFileReferenceIntegration in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php
Ensures that CKEditor 5 integrates with file reference filter.

... See full list

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php, line 107

Class

CKEditor5TestBase
Base class for testing CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public function saveNewTextFormat($page, $assert_session) {
    $page->pressButton('Save configuration');
    $this->assertTrue($assert_session->waitForText('Added text format'), "Confirm new text format saved");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.