You are here

public function WebformElementDescriptionTest::testDateElement in Webform 6.x

Test date element.

File

tests/src/Functional/Element/WebformElementDescriptionTest.php, line 22

Class

WebformElementDescriptionTest
Tests for webform element description.

Namespace

Drupal\Tests\webform\Functional\Element

Code

public function testDateElement() {
  $this
    ->drupalGet('/webform/test_element_description');

  // Check .description class is included when description display is before.
  $this
    ->assertCssSelect('.description #edit-description-before--description.webform-element-description');

  // Check .description class is included when description display is after.
  $this
    ->assertCssSelect('.description #edit-description-after--description.webform-element-description');
}