function ElementTest::testDetailsDescriptionAttributes
Same name and namespace in other branches
- 11.x core/modules/system/tests/src/Functional/Form/ElementTest.php \Drupal\Tests\system\Functional\Form\ElementTest::testDetailsDescriptionAttributes()
Tests description attributes of details.
1 call to ElementTest::testDetailsDescriptionAttributes()
- ElementTest::testFormElements in core/
modules/ system/ tests/ src/ Functional/ Form/ ElementTest.php - Test form elements.
File
-
core/
modules/ system/ tests/ src/ Functional/ Form/ ElementTest.php, line 251
Class
- ElementTest
- Tests building and processing of core form elements.
Namespace
Drupal\Tests\system\Functional\FormCode
protected function testDetailsDescriptionAttributes() : void {
$this->drupalGet('form-test/group-details');
$this->assertSession()
->elementExists('css', 'details[aria-describedby="edit-description-attributes--description"]');
$this->assertSession()
->elementExists('css', 'div[id="edit-description-attributes--description"]');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.