You are here

public function UiDialogTest::testImageBaseDialogWorks in Editor Advanced Image 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/UiDialogTest.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiDialogTest::testImageBaseDialogWorks()

Tests CKEditor button image still apprear, works & dialog open.

3 calls to UiDialogTest::testImageBaseDialogWorks()
UiDialogTest::testDefaultClass in tests/src/FunctionalJavascript/UiDialogTest.php
Test Default Class is shown when configured.
UiDialogTest::testFilterHtmlDisable in tests/src/FunctionalJavascript/UiDialogTest.php
Test the appearance of every EIA attributes when no filters enabled.
UiDialogTest::testFilterHtmlEnable in tests/src/FunctionalJavascript/UiDialogTest.php
Test the appearance of EIA attributes when no filters enabled/partial.

File

tests/src/FunctionalJavascript/UiDialogTest.php, line 135

Class

UiDialogTest
Tests event info pages and links.

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

public function testImageBaseDialogWorks() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet('node/add/page');

  // Asserts the Image button is present.
  $this
    ->assertElementPresent('#cke_edit-body-0-value .cke_button__drupalimage');

  // Asserts the Image button is present.
  $this
    ->clickOnElement('css', '.cke_button__drupalimage');
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
  $this
    ->assertElementPresent('.ui-dialog');
  $this
    ->assertSession()
    ->elementContains('css', '.ui-dialog .ui-dialog-titlebar', 'Insert Image');
}