Verified Commit 56e616d6 authored by Dave Long's avatar Dave Long
Browse files

Issue #3413935 by Spokje: Make CKEditor5ToolbarTest and TableTest extend WebDriverTestBase

(cherry picked from commit 3d1fd96a)
parent 9be71d08
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
use Drupal\ckeditor5\Plugin\Editor\CKEditor5;
use Drupal\editor\Entity\Editor;
use Drupal\filter\Entity\FilterFormat;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\user\Entity\User;
use Symfony\Component\Validator\ConstraintViolation;

@@ -16,15 +17,22 @@
 * @group ckeditor5
 * @internal
 */
class CKEditor5ToolbarTest extends CKEditor5TestBase {
class CKEditor5ToolbarTest extends WebDriverTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'node',
    'ckeditor5',
    'toolbar',
  ];

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * The admin user.
   *
+4 −1
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
use Drupal\ckeditor5\Plugin\Editor\CKEditor5;
use Drupal\editor\Entity\Editor;
use Drupal\filter\Entity\FilterFormat;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait;
use Symfony\Component\Validator\ConstraintViolation;

@@ -16,7 +17,7 @@
 * @group ckeditor5
 * @internal
 */
class TableTest extends CKEditor5TestBase {
class TableTest extends WebDriverTestBase {

  use CKEditor5TestTrait;

@@ -61,6 +62,8 @@ class TableTest extends CKEditor5TestBase {
  protected function setUp(): void {
    parent::setUp();

    $this->drupalCreateContentType(['type' => 'page']);

    FilterFormat::create([
      'format' => 'test_format',
      'name' => 'Test format',