X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FForm%2FElementTest.php;h=6eefa484bddee173d67b01ae513ccf825aca9f99;hp=57da8daf278649a48d6b88d47c81700337845f80;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/tests/src/Functional/Form/ElementTest.php b/web/core/modules/system/tests/src/Functional/Form/ElementTest.php index 57da8daf2..6eefa484b 100644 --- a/web/core/modules/system/tests/src/Functional/Form/ElementTest.php +++ b/web/core/modules/system/tests/src/Functional/Form/ElementTest.php @@ -223,4 +223,12 @@ class ElementTest extends BrowserTestBase { $this->assertText('I am an error on the details element.'); } + /** + * Tests summary attributes of details. + */ + public function testDetailsSummaryAttributes() { + $this->drupalGet('form-test/group-details'); + $this->assertTrue($this->cssSelect('summary[data-summary-attribute="test"]')); + } + }