diff --git a/core/modules/system/tests/src/Functional/Form/CheckboxTest.php b/core/modules/system/tests/src/Functional/Form/CheckboxTest.php index 024be19975..bfbdbd4ef0 100644 --- a/core/modules/system/tests/src/Functional/Form/CheckboxTest.php +++ b/core/modules/system/tests/src/Functional/Form/CheckboxTest.php @@ -102,4 +102,13 @@ public function testFormCheckbox() { } } + /** + * Tests that checkbox has no aria required attribute. + */ + public function testFormCheckboxHasNoAriaRequiredAtt() { + $this->drupalGet('/form-test/checkbox'); + $element = $this->cssSelect('input[aria-required]'); + $this->assertEmpty($element); + } + }