public function SocialMessageContext::assertRegionSuccessMessage in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x tests/behat/features/bootstrap/SocialMessageContext.php \Drupal\social\Behat\SocialMessageContext::assertRegionSuccessMessage()
- 10.0.x tests/behat/features/bootstrap/SocialMessageContext.php \Drupal\social\Behat\SocialMessageContext::assertRegionSuccessMessage()
- 10.1.x tests/behat/features/bootstrap/SocialMessageContext.php \Drupal\social\Behat\SocialMessageContext::assertRegionSuccessMessage()
Checks if the current page contains the given success message
@Then I should see the success message( containing) :message in the :region( region)
Parameters
$message: string The text to be checked
$region: string The region
File
- tests/
behat/ features/ bootstrap/ SocialMessageContext.php, line 24
Class
- SocialMessageContext
- Provides step-definitions for interacting with Drupal messages.
Namespace
Drupal\social\BehatCode
public function assertRegionSuccessMessage($message, $region) {
$this
->_assertRegion($message, 'success_message_selector', "The page '%s' does not contain any success messages", "The page '%s' does not contain the success message '%s'", $region);
}