function CKEditor5TestTrait::waitForEditor
Same name in other branches
- 9 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.
40 calls to CKEditor5TestTrait::waitForEditor()
- CKEditor5MarkupTest::testAttributeEncoding in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5MarkupTest.php - Ensures that attribute values are encoded.
- CKEditor5MarkupTest::testFilterHtmlAllowedGlobalAttributes in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5MarkupTest.php - Ensures that CKEditor 5 retains filter_html's allowed global attributes.
- CKEditor5MarkupTest::testStylesAndScripts in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5MarkupTest.php - Ensures that HTML scripts and styles are properly preserved in CKEditor 5.
- CKEditor5Test::testListPlugin in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php - Tests list plugin.
- CKEditor5Test::testSave in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php - Ensures that changes are saved in CKEditor 5.
File
-
core/
modules/ ckeditor5/ tests/ src/ Traits/ CKEditor5TestTrait.php, line 52
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.