Drupal.theme.ajaxProgressThrobber = function (message) {
return '<div class="custom-ajax-progress-throbber"></div>';
};
JS;
$custom_ajax_progress_message = <<<JS
Drupal.theme.ajaxProgressMessage = function (message) {
return '<div class="custom-ajax-progress-message">Hold door!</div>';
};
JS;
$this->
drupalGet('admin/structure/views/view/content'
);
$web_assert->
assertNoElementAfterWait('css', '.ajax-progress-fullscreen'
);
// Test theming fullscreen throbber.
$session->
executeScript($custom_ajax_progress_indicator_fullscreen);
hold_test_response(TRUE
);
$page->
clickLink('Content: Published (grouped)'
);
$this->
assertNotNull($web_assert->
waitForElement('css', '.custom-ajax-progress-fullscreen'
), 'Custom ajaxProgressIndicatorFullscreen.'
);
hold_test_response(FALSE
);
$web_assert->
assertNoElementAfterWait('css', '.custom-ajax-progress-fullscreen'
);
// Test theming throbber message.
$web_assert->
waitForElementVisible('css', '[data-drupal-selector="edit-options-group-info-add-group"]'
);