You are here

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

Ensure the ARIA role input field exists.

Throws

\Behat\Mink\Exception\ElementNotFoundException

File

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

Class

RoleTest
Test adding ARIA roles.

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][role]');
}