function CKEditor5TestTrait::pressEditorButton

Same name in other branches
  1. 10 core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php \Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait::pressEditorButton()
  2. 11.x core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php \Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait::pressEditorButton()

Clicks a CKEditor button.

Parameters

string $name: The name of the button, such as `drupallink`, `source`, etc.

12 calls to CKEditor5TestTrait::pressEditorButton()
CKEditor5DialogTest::testCKEditor5FocusInTooltipsInDialog in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5DialogTest.php
Tests if CKEditor 5 tooltips can be interacted with in dialogs.
CKEditor5Test::testListPlugin in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php
Tests list plugin.
ImageTestBase::addImage in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php
Add an image to the CKEditor 5 editable zone.
ImageTestBase::testLinkability in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php
Tests linkability of the image CKEditor widget.
ImageUrlTest::testImageUrlWidget in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTest.php
Tests the Drupal image URL widget.

... See full list

File

core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php, line 61

Class

CKEditor5TestTrait
Provides methods to test CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\Traits

Code

protected function pressEditorButton($name) {
    $this->getEditorButton($name)
        ->click();
}

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