You are here

public function LabelTest::testAdminFormSetting in Block ARIA Landmark Roles 8

Ensure the ARIA label input field exists.

Throws

\Behat\Mink\Exception\ElementNotFoundException

File

tests/src/Functional/LabelTest.php, line 54

Class

LabelTest
Test adding ARIA labels.

Namespace

Drupal\Tests\block_aria_landmark_roles\Functional

Code

public function testAdminFormSetting() {
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer blocks',
  ]));
  $this
    ->drupalGet('admin/structure/block/add/system_main_block/classy');
  $this
    ->assertSession()
    ->fieldExists('third_party_settings[block_aria_landmark_roles][label]');
}