Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / system / tests / modules / js_webassert_test / js / js_webassert_test.wait_for_element.js
1 /**
2  * @file
3  *  Testing behavior for JSWebAssertTest.
4  */
5
6 (function ($, Drupal, drupalSettings) {
7
8   'use strict';
9
10   /**
11    * @type {Drupal~behavior}
12    *
13    * @prop {Drupal~behaviorAttach} attach
14    *   Makes changes in the DOM to be able to test the completion of AJAX in assertWaitOnAjaxRequest.
15    */
16   Drupal.behaviors.js_webassert_test_wait_for_element = {
17     attach: function (context) {
18       $('#js_webassert_test_element_invisible').show();
19     }
20   };
21
22 })(jQuery, Drupal, drupalSettings);