function CKEditor5TestTrait::pressEditorButton

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php \Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait::pressEditorButton()
  2. 10 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.

13 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.
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.
ImageTestBase::addImage in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php
Add an image to the CKEditor 5 editable zone.

... See full list

File

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

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.