You are here

protected function TestBase::editorClickButton in The CodeMirror Editor 8

Clicks specified editor toolbar button.

2 calls to TestBase::editorClickButton()
EditorTest::testEditor in tests/src/FunctionalJavascript/EditorTest.php
Test callback.
TextEditorTest::testTextEditor in tests/src/FunctionalJavascript/TextEditorTest.php
Test callback.

File

tests/src/FunctionalJavascript/TestBase.php, line 54

Class

TestBase
Base class for CodeMirror editor tests.

Namespace

Drupal\Tests\codemirror_editor\FunctionalJavascript

Code

protected function editorClickButton($button) {
  $this
    ->getSession()
    ->getPage()
    ->find('css', sprintf('%s [data-cme-button="' . $button . '"]', $this
    ->getWrapperSelector()))
    ->click();
}