function CKEditor5TestBase::assertNoRealtimeValidationErrors

Same name in other branches
  1. 10 core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5TestBase::assertNoRealtimeValidationErrors()
  2. 11.x core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5TestBase::assertNoRealtimeValidationErrors()

Checks that no real-time validation errors are present.

Throws

\Behat\Mink\Exception\ElementNotFoundException

1 call to CKEditor5TestBase::assertNoRealtimeValidationErrors()
StyleTest::testStyleSettingsForm in core/modules/ckeditor5/tests/src/FunctionalJavascript/StyleTest.php
@covers \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style::buildConfigurationForm

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php, line 145

Class

CKEditor5TestBase
Base class for testing CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

protected function assertNoRealtimeValidationErrors() : void {
    $assert_session = $this->assertSession();
    $this->assertSame('', $assert_session->elementExists('css', '[data-drupal-selector="ckeditor5-realtime-validation-messages-container"]')
        ->getHtml());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.