d2e1fea2ce5de1f42d40aae1ce48f33abc3bd1a7
[yaffs-website] / web / core / modules / system / tests / modules / js_webassert_test / js / js_webassert_test.wait_for_ajax_request.es6.js
1 /**
2  * @file
3  *  Testing behavior for JSWebAssertTest.
4  */
5
6 (function ($, Drupal, drupalSettings) {
7   /**
8    * @type {Drupal~behavior}
9    *
10    * @prop {Drupal~behaviorAttach} attach
11    *   Makes changes in the DOM to be able to test the completion of AJAX in assertWaitOnAjaxRequest.
12    */
13   Drupal.behaviors.js_webassert_test_wait_for_ajax_request = {
14     attach(context) {
15       $('input[name="test_assert_wait_on_ajax_input"]').val('js_webassert_test');
16     },
17   };
18 }(jQuery, Drupal, drupalSettings));