function CKEditor5AllowedTagsTest::testInternetExplorerWarning
Tests the presence of the IE warning when CKEditor 5 is selected.
File
-
core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5AllowedTagsTest.php, line 429
Class
- CKEditor5AllowedTagsTest
- Tests for CKEditor 5.
Namespace
Drupal\Tests\ckeditor5\FunctionalJavascriptCode
public function testInternetExplorerWarning() {
$page = $this->getSession()
->getPage();
$assert_session = $this->assertSession();
$warning_text = 'CKEditor 5 is not compatible with Internet Explorer. Text fields using CKEditor 5 will fall back to plain HTML editing without CKEditor for users of Internet Explorer.';
$this->createNewTextFormat($page, $assert_session);
$assert_session->waitForText($warning_text);
$page->selectFieldOption('editor[editor]', 'None');
$this->getSession()
->getDriver()
->executeScript("document.querySelector('#drupal-live-announce').innerHTML = ''");
$assert_session->assertNoElementAfterWait('css', '.messages--warning');
$assert_session->pageTextNotContains($warning_text);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.