You are here

private function ModerationContext::assertBlock in Lightning Workflow 8.3

Asserts the presence of a particular block by its plugin ID.

Parameters

string $plugin_id: The block plugin ID.

Return value

\Behat\Mink\Element\ElementInterface The block element.

2 calls to ModerationContext::assertBlock()
ModerationContext::assertModerationDashboard in tests/contexts/ModerationContext.behat.inc
Asserts the presence of the moderation dashboard.
ModerationContext::assertQuickEditableBlock in tests/contexts/ModerationContext.behat.inc
Asserts that a block exists with a Quick Edit contextual link.

File

tests/contexts/ModerationContext.behat.inc, line 246

Class

ModerationContext
Contains miscellaneous step definitions for testing moderation UIs.

Namespace

Acquia\LightningExtension\Context

Code

private function assertBlock($plugin_id) {
  return $this
    ->assertSession()
    ->elementExists('css', '[data-block-plugin-id="' . $plugin_id . '"]');
}