protected function WebformCivicrmTestBase::assertPageNoErrorMessages in Webform CiviCRM Integration 8.5
Asserts the page has no error messages.
38 calls to WebformCivicrmTestBase::assertPageNoErrorMessages()
- ActivitySubmissionTest::submitWebform in tests/
src/ FunctionalJavascript/ ActivitySubmissionTest.php - Submit webform for activity
- ActivitySubmissionTest::verifyActivityValues in tests/
src/ FunctionalJavascript/ ActivitySubmissionTest.php - Verify activity values in civicrm.
- AttachmentTest::testSubmitWebform in tests/
src/ FunctionalJavascript/ AttachmentTest.php - Check if all files are loaded on the webform.
- CaseSubmissionTest::submitCaseAndVerifyResult in tests/
src/ FunctionalJavascript/ CaseSubmissionTest.php - Submit Case and verify the result.
- ContactDedupeTest::testSubmitWebform in tests/
src/ FunctionalJavascript/ ContactDedupeTest.php - Test submitting Contact - Matching Rule
File
- tests/
src/ FunctionalJavascript/ WebformCivicrmTestBase.php, line 145
Class
Namespace
Drupal\Tests\webform_civicrm\FunctionalJavascriptCode
protected function assertPageNoErrorMessages() {
$error_messages = $this
->getSession()
->getPage()
->findAll('css', '.messages.messages--error');
$this
->assertCount(0, $error_messages, implode(', ', array_map(static function (NodeElement $el) {
return $el
->getValue();
}, $error_messages)));
}