function CKEditorTestTrait::pressEditorButton
Same name in other branches
- 9 core/modules/ckeditor/tests/src/Traits/CKEditorTestTrait.php \Drupal\Tests\ckeditor\Traits\CKEditorTestTrait::pressEditorButton()
Clicks a CKEditor button.
Parameters
string $name: The name of the button, such as `drupallink`, `source`, etc.
string $instance_id: (optional) The CKEditor instance ID. Defaults to 'edit-body-0-value'.
10 calls to CKEditorTestTrait::pressEditorButton()
- CKEditorIntegrationTest::leaveSourceMode in core/
modules/ media/ tests/ src/ FunctionalJavascript/ CKEditorIntegrationTest.php - Leaves source mode and returns to the CKEditor iframe.
- CKEditorIntegrationTest::testAlignment in core/
modules/ media/ tests/ src/ FunctionalJavascript/ CKEditorIntegrationTest.php - Tests alignment integration.
- CKEditorIntegrationTest::testAllowedMediaTypes in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ CKEditorIntegrationTest.php - Tests the allowed media types setting on the MediaEmbed filter.
- CKEditorIntegrationTest::testAlt in core/
modules/ media/ tests/ src/ FunctionalJavascript/ CKEditorIntegrationTest.php - Tests the EditorMediaDialog can set the alt attribute.
- CKEditorIntegrationTest::testButton in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ CKEditorIntegrationTest.php - Tests using DrupalMediaLibrary button to embed media into CKEditor.
File
-
core/
modules/ ckeditor/ tests/ src/ Traits/ CKEditorTestTrait.php, line 60
Class
- CKEditorTestTrait
- Provides methods to test CKEditor.
Namespace
Drupal\Tests\ckeditor\TraitsCode
protected function pressEditorButton($name, $instance_id = 'edit-body-0-value') {
$this->getEditorButton($name, $instance_id)
->click();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.