You are here

public function ModerationContext::assertQuickEditableBlock in Lightning Workflow 8.3

Asserts that a block exists with a Quick Edit contextual link.

@Then I should see a :plugin block with Quick Edit

Parameters

string $plugin: The block plugin ID.

File

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

Class

ModerationContext
Contains miscellaneous step definitions for testing moderation UIs.

Namespace

Acquia\LightningExtension\Context

Code

public function assertQuickEditableBlock($plugin) {
  $block = $this
    ->assertBlock($plugin);
  $assert = $this
    ->assertSession();
  $links = $assert
    ->elementExists('css', 'ul.contextual-links', $block);
  $assert
    ->elementExists('named', [
    'link',
    'Quick edit',
  ], $links);
}