You are here

public function PanelsIPEContext::instantiate in Lightning Layout 8

Instantiates a block plugin.

@When I instantiate the :plugin_id block @When I instantiate the :plugin_id block from the :category category

Parameters

string $plugin_id: The block plugin ID.

string $category: (optional) The category in which the block plugin resides.

Return value

\Behat\Mink\Element\NodeElement The block plugin configuration form.

File

tests/contexts/PanelsIPEContext.behat.inc, line 135

Class

PanelsIPEContext
Contains step definitions for interacting with Panels IPE.

Namespace

Acquia\LightningExtension\Context

Code

public function instantiate($plugin_id, $category = NULL) {
  $this
    ->assertPlugin($plugin_id, $category)
    ->click();
  $this
    ->awaitAjax();
  return $this
    ->assertSession()
    ->elementExists('css', '.panels-ipe-block-plugin-form', $this
    ->getActiveTab());
}