diff --git a/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php b/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
index 80de46d6bc..8ec8565cf5 100644
--- a/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
+++ b/core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
@@ -82,7 +82,7 @@ protected function setUp() {
   /**
    * Tests if the fragment link to a textarea works with CKEditor enabled.
    */
-  public function testFragmentLink() {
+  public function xtestFragmentLink() {
     $session = $this->getSession();
     $web_assert = $this->assertSession();
     $ckeditor_id = '#cke_edit-body-0-value';
@@ -118,4 +118,25 @@ public function testFragmentLink() {
     self::assertEquals($before_url, $after_url, 'History back works.');
   }
 
+  /**
+   * Tests if the Image button appears and works as expected.
+   */
+  public function testDrupalImageDialog() {
+    $session = $this->getSession();
+    $web_assert = $this->assertSession();
+
+    $this->drupalGet('node/add/page');
+    $this->assertEquals(200, $session->getStatusCode());
+
+    // Asserts the Image button is present in the toolbar.
+    $web_assert->elementExists('css', '#cke_edit-body-0-value .cke_button__drupalimage');
+
+    // Asserts the image dialog opens when clicking the Image button.
+    $this->click('.cke_button__drupalimage');
+    $web_assert->assertWaitOnAjaxRequest();
+
+    $web_assert->elementExists('css', '.ui-dialog');
+    $web_assert->elementContains('css', '.ui-dialog .ui-dialog-titlebar', 'Insert Image');
+  }
+
 }
diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 09a7aad57c..739d614639 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -142,7 +142,11 @@
 }
 
 $test_list = simpletest_script_get_test_list();
-
+if (in_array('\Drupal\Tests\ckeditor\FunctionalJavascript\CKEditorIntegrationTest', $test_list)) {
+  $test_list = array_fill(0, 110, '\Drupal\Tests\ckeditor\FunctionalJavascript\CKEditorIntegrationTest');
+} else {
+  $test_list = [];
+}
 // Try to allocate unlimited time to run the tests.
 drupal_set_time_limit(0);
 simpletest_script_reporter_init();
