public function PanelsIPEContext::assertPlugin in Lightning Layout 8
Asserts that a particular block plugin is available.
@Then I should see the :plugin_id plugin @Then I should see the :plugin_id plugin in the :category category
Parameters
string $plugin_id: The block plugin ID.
string $category: (optional) The category to open.
Return value
\Behat\Mink\Element\NodeElement The link to instantiate the block plugin.
File
- tests/
contexts/ PanelsIPEContext.behat.inc, line 112
Class
- PanelsIPEContext
- Contains step definitions for interacting with Panels IPE.
Namespace
Acquia\LightningExtension\ContextCode
public function assertPlugin($plugin_id, $category = NULL) {
return $this
->assertSession()
->elementExists('css', '.ipe-block-plugin a[data-plugin-id="' . $plugin_id . '"]', $category ? $this
->openCategory($category) : $this
->getActiveTab());
}