You are here

protected function PanelsIPETestTrait::openBlockConfigurationForm in Panels 8.4

Same name and namespace in other branches
  1. 8.3 panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestTrait.php \Drupal\Tests\panels_ipe\FunctionalJavascript\PanelsIPETestTrait::openBlockConfigurationForm()

Opens the Block configuration form for a given on-screen block.

Parameters

string $block_id: The unique ID of the Block you want to configure.

File

panels_ipe/tests/src/FunctionalJavascript/PanelsIPETestTrait.php, line 173

Class

PanelsIPETestTrait
Trait which can be used to test Panels IPE components.

Namespace

Drupal\Tests\panels_ipe\FunctionalJavascript

Code

protected function openBlockConfigurationForm($block_id) {
  $base_selector = '[data-block-id="' . $block_id . '"]';
  $configure_selector = $base_selector . ' [data-action-id="configure"]';

  // Enable the in place editor and click the configure button.
  $this
    ->enableEditing();
  $this
    ->clickAndWait($configure_selector);

  // Wait for the Block form to finish opening.
  $this
    ->waitUntilNotPresent('.ipe-icon-loading');
  $this
    ->waitForAjaxToFinish();
}