function CKEditor5TestTrait::waitForEditor
Same name in other branches
- 10 core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php \Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait::waitForEditor()
- 11.x core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php \Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait::waitForEditor()
Waits for CKEditor to initialize.
35 calls to CKEditor5TestTrait::waitForEditor()
- CKEditor5Test::testAttributeEncoding in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php - Ensures that attribute values are encoded.
- CKEditor5Test::testFilterHtmlAllowedGlobalAttributes in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php - Ensures that CKEditor 5 retains filter_html's allowed global attributes.
- CKEditor5Test::testListPlugin in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php - Tests list plugin.
- EmphasisTest::testEmphasis in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ EmphasisTest.php - Ensures that CKEditor italic model is converted to em.
- EmphasisTest::testEmphasisArbitraryHtml in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ EmphasisTest.php - Tests that arbitrary attributes are allowed via GHS.
File
-
core/
modules/ ckeditor5/ tests/ src/ Traits/ CKEditor5TestTrait.php, line 50
Class
- CKEditor5TestTrait
- Provides methods to test CKEditor 5.
Namespace
Drupal\Tests\ckeditor5\TraitsCode
protected function waitForEditor() {
$assert_session = $this->assertSession();
$this->assertNotEmpty($assert_session->waitForElement('css', '.ck-editor'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.