You are here

public function ConfigPageTest::testWarningToggle in Require on Publish 8

Test that the warning toggle works.

File

tests/src/FunctionalJavascript/ConfigPageTest.php, line 148

Class

ConfigPageTest
Tests the 'Require on Publish' functionality on field config pages.

Namespace

Drupal\Tests\require_on_publish\FunctionalJavascript

Code

public function testWarningToggle() {
  $this
    ->logIn();
  $this
    ->getSession()
    ->getPage()
    ->fillField('require_on_publish', 1);
  $this
    ->assertSession()
    ->fieldExists('warn_on_empty');
}