You are here

public function PathautoUiTest::testSettingsValidation in Pathauto 8

File

tests/src/FunctionalJavascript/PathautoUiTest.php, line 60

Class

PathautoUiTest
Test basic pathauto functionality.

Namespace

Drupal\Tests\pathauto\FunctionalJavascript

Code

public function testSettingsValidation() {
  $this
    ->drupalGet('/admin/config/search/path/settings');
  $this
    ->assertSession()
    ->fieldExists('max_length');
  $this
    ->assertSession()
    ->elementAttributeContains('css', '#edit-max-length', 'min', '1');
  $this
    ->assertSession()
    ->fieldExists('max_component_length');
  $this
    ->assertSession()
    ->elementAttributeContains('css', '#edit-max-component-length', 'min', '1');
}