WebformElementDescriptionTest.php in Webform 6.x
File
tests/src/Functional/Element/WebformElementDescriptionTest.php
View source
<?php
namespace Drupal\Tests\webform\Functional\Element;
class WebformElementDescriptionTest extends WebformElementBrowserTestBase {
protected static $testWebforms = [
'test_element_description',
];
public function testDateElement() {
$this
->drupalGet('/webform/test_element_description');
$this
->assertCssSelect('.description #edit-description-before--description.webform-element-description');
$this
->assertCssSelect('.description #edit-description-after--description.webform-element-description');
}
}