Skip to content
Snippets Groups Projects
Commit e17bb009 authored by catch's avatar catch
Browse files

Issue #3076609 by oknate:...

Issue #3076609 by oknate: \Drupal\Tests\ckeditor\FunctionalJavascript\CKEditorIntegrationTest fails on Sqlite
parent 0041ba08
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -9,6 +9,7 @@
use Drupal\filter\Entity\FilterFormat;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\ckeditor\Traits\CKEditorTestTrait;
/**
* Tests the integration of CKEditor.
......@@ -17,6 +18,8 @@
*/
class CKEditorIntegrationTest extends WebDriverTestBase {
use CKEditorTestTrait;
/**
* The account.
*
......@@ -160,7 +163,8 @@ public function testDrupalImageCaptionDialog() {
// If the caption filter is disabled, its checkbox should be absent.
$this->drupalGet('node/add/page');
$this->click('.cke_button__drupalimage');
$this->waitForEditor();
$this->pressEditorButton('drupalimage');
$this->assertNotEmpty($web_assert->waitForElement('css', '.ui-dialog'));
$web_assert->elementNotExists('css', '.ui-dialog input[name="attributes[hasCaption]"]');
......@@ -170,9 +174,10 @@ public function testDrupalImageCaptionDialog() {
]);
$this->filterFormat->save();
// If the caption filter is enabled, its checkbox should be present.
// If the caption filter is enabled, its checkbox should be present.
$this->drupalGet('node/add/page');
$this->click('.cke_button__drupalimage');
$this->waitForEditor();
$this->pressEditorButton('drupalimage');
$this->assertNotEmpty($web_assert->waitForElement('css', '.ui-dialog'));
$web_assert->elementExists('css', '.ui-dialog input[name="attributes[hasCaption]"]');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment