public function AuthenticationFormJsTest::assertSendRequestMessage in Apigee Edge 8
Tests send request functionality.
Parameters
string $message_selector: Either `.messages--error` or `.messages--error`.
string $message: The error or status message.
3 calls to AuthenticationFormJsTest::assertSendRequestMessage()
- AuthenticationFormJsTest::testAuthenticationForm in tests/
src/ FunctionalJavascript/ Form/ AuthenticationFormJsTest.php - Tests the Authentication form.
- AuthenticationFormJsTest::testUsingHybridForm in tests/
src/ FunctionalJavascript/ Form/ AuthenticationFormJsTest.php - Tests the Authentication form using Hybrid auth.
- AuthenticationFormJsTest::validateForm in tests/
src/ FunctionalJavascript/ Form/ AuthenticationFormJsTest.php - Validates the visited form.
File
- tests/
src/ FunctionalJavascript/ Form/ AuthenticationFormJsTest.php, line 451
Class
- AuthenticationFormJsTest
- Apigee Edge API credentials, authentication form, key integration test.
Namespace
Drupal\Tests\apigee_edge\FunctionalJavascript\FormCode
public function assertSendRequestMessage($message_selector, $message) {
$web_assert = $this
->assertSession();
$page = $this
->getSession()
->getPage();
// Press the send request button.
$page
->pressButton('Send request');
$this
->assertNotNull($web_assert
->waitForElementVisible('css', '.ajax-progress.ajax-progress-throbber', 30000));
// Wait for the test to complete.
$web_assert
->assertWaitOnAjaxRequest(30000);
$web_assert
->elementTextContains('css', $message_selector, $message);
}