function TextareaWithSummaryTest::testSummaryButtonOverride
Same name and namespace in other branches
- 11.x core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php \Drupal\Tests\text\FunctionalJavascript\TextareaWithSummaryTest::testSummaryButtonOverride()
Tests overriding markup in Edit summary button.
Check that the override in text-test.js adds the "text-test-edit-link" class.
File
-
core/
modules/ text/ tests/ src/ FunctionalJavascript/ TextareaWithSummaryTest.php, line 187
Class
- TextareaWithSummaryTest
- Tests the JavaScript functionality of the text_textarea_with_summary widget.
Namespace
Drupal\Tests\text\FunctionalJavascriptCode
public function testSummaryButtonOverride() : void {
$this->assertSummaryToggle();
$this->drupalGet('node/add/page');
$selector = 'div.field--name-body-test span.text-test-edit-link';
$this->assertSession()
->elementExists('css', $selector);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.