You are here

public function ChosenFormTest::testFormPage in Chosen 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/ChosenFormTest.php \Drupal\Tests\chosen\Functional\ChosenFormTest::testFormPage()

Test the form page.

File

tests/src/Functional/ChosenFormTest.php, line 28

Class

ChosenFormTest
Chosen form API test.

Namespace

Drupal\Tests\chosen\Functional

Code

public function testFormPage() {
  $this
    ->drupalGet('chosen-test');
  $this
    ->assertText('Select');
  $this
    ->assertSession()
    ->elementExists('css', 'select#edit-select.chosen-enable');
}