function 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 237
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.