function JsWebAssertTestForm::addAssertWaitOnAjaxRequest
Same name in this branch
- 11.x core/modules/system/tests/modules/jswebassert_test/src/Form/JsWebAssertTestForm.php \Drupal\jswebassert_test\Form\JsWebAssertTestForm::addAssertWaitOnAjaxRequest()
Same name in other branches
- 9 core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php \Drupal\js_webassert_test\Form\JsWebAssertTestForm::addAssertWaitOnAjaxRequest()
- 8.9.x core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php \Drupal\js_webassert_test\Form\JsWebAssertTestForm::addAssertWaitOnAjaxRequest()
- 10 core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php \Drupal\js_webassert_test\Form\JsWebAssertTestForm::addAssertWaitOnAjaxRequest()
Ajax callback for the "Test waitForAjax" button.
File
-
core/
modules/ system/ tests/ modules/ js_webassert_test/ src/ Form/ JsWebAssertTestForm.php, line 187
Class
- JsWebAssertTestForm
- Test form for JSWebAssert WebDriverTestBase.
Namespace
Drupal\js_webassert_test\FormCode
public static function addAssertWaitOnAjaxRequest(array $form, FormStateInterface $form_state) {
// Attach the library necessary for this test.
$form['#attached']['library'][] = 'js_webassert_test/wait_for_ajax_request';
$form['test_assert_wait_on_ajax_input'] = [
'#type' => 'textfield',
'#name' => 'test_assert_wait_on_ajax_input',
];
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.