function CKEditor5TestBase::saveNewTextFormat

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

Save the new text format.

1 call to CKEditor5TestBase::saveNewTextFormat()
LanguageTest::test in core/modules/ckeditor5/tests/src/FunctionalJavascript/LanguageTest.php
Integration test to ensure that CKEditor 5 UI translations are loaded.

File

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

Class

CKEditor5TestBase
Base class for testing CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public function saveNewTextFormat($page, $assert_session) {
  $assert_session->assertWaitOnAjaxRequest();
  $page->pressButton('Save configuration');
  $this->assertTrue($assert_session->waitForText('Added text format'), "Confirm new text format saved");
}

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