protected function PanelsIPETestTrait::openBlockConfigurationForm in Panels 8.3
Same name and namespace in other branches
- 8.4 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 146
Class
- PanelsIPETestTrait
- Trait which can be used to test Panels IPE components.
Namespace
Drupal\Tests\panels_ipe\FunctionalJavascriptCode
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();
}