You are here

public function ModerationContext::assertModerationDashboard in Lightning Workflow 8.3

Asserts the presence of the moderation dashboard.

@Then I should see a dashboard for moderating content

File

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

Class

ModerationContext
Contains miscellaneous step definitions for testing moderation UIs.

Namespace

Acquia\LightningExtension\Context

Code

public function assertModerationDashboard() {
  $this
    ->assertBlock('views_block:content_moderation_dashboard_in_review-block_1');
  $this
    ->assertBlock('views_block:content_moderation_dashboard_in_review-block_2');
  $this
    ->assertBlock('moderation_dashboard_activity');
  $this
    ->assertBlock('views_block:moderation_dashboard_recently_created-block_1');
  $this
    ->assertBlock('views_block:content_moderation_dashboard_in_review-block_3');
  $this
    ->assertBlock('views_block:moderation_dashboard_recent_changes-block_1');
  $this
    ->assertBlock('views_block:moderation_dashboard_recent_changes-block_2');
  $this
    ->assertBlock('views_block:moderation_dashboard_recently_created-block_2');
}