You are here

protected function TestBase::editorClickButton in Twig Field 8

Clicks specified editor toolbar button.

1 call to TestBase::editorClickButton()
TwigFieldTest::testTwigField in tests/src/FunctionalJavascript/TwigFieldTest.php
Test callback.

File

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

Class

TestBase
Base class for Twig field tests.

Namespace

Drupal\Tests\twig_field\FunctionalJavascript

Code

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