Skip to content

Commit

Permalink
Added test from PR #234
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertj committed Jan 10, 2024
1 parent 6a672a4 commit f3a305b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ public function testServiceStatusMessageVisibility() {
$this->assertSession()->elementTextContains('css', '.service-status-messages', $summary);
$this->assertSession()->elementTextContains('css', '.service-status-messages', $summary2);
$this->assertSession()->linkByHrefExists(\Drupal::service('path_alias.manager')->getAliasByPath('/node/' . $status2->id()));

// Check visibility of deleted status.
$status2->delete();
$this->drupalGet($landing_path);
$this->assertSession()->elementTextContains('css', '.service-status-messages', $summary);
$this->assertSession()->elementTextNotContains('css', '.service-status-messages', $summary2);
}

}

0 comments on commit f3a305b

Please sign in to comment.