public function ElementTest::testDetailsSummaryAttributes in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Form/ElementTest.php \Drupal\Tests\system\Functional\Form\ElementTest::testDetailsSummaryAttributes()
- 9 core/modules/system/tests/src/Functional/Form/ElementTest.php \Drupal\Tests\system\Functional\Form\ElementTest::testDetailsSummaryAttributes()
Tests summary attributes of details.
File
- core/
modules/ system/ tests/ src/ Functional/ Form/ ElementTest.php, line 201
Class
- ElementTest
- Tests building and processing of core form elements.
Namespace
Drupal\Tests\system\Functional\FormCode
public function testDetailsSummaryAttributes() {
$this
->drupalGet('form-test/group-details');
$this
->assertSession()
->elementExists('css', 'summary[data-summary-attribute="test"]');
}