Change record status: 
Project: 
Introduced in branch: 
10.2.x
Introduced in version: 
10.2.0
Description: 

A new Drupal\Tests\FunctionalJavascriptTests\JSWebAssert::assertExpectedAjaxRequest() method with a $count parameter has been added to allow explicit testing of the number of AJAX responses any test operation should trigger.

::assertWaitOnAjaxRequest() uses this new method, but without the assertion.

If assertWaitOnAjaxRequest() is called and there are no current or prior ajax requests, there will be a RuntimeException: Unable to complete AJAX request failure

If either method is called when there are zero additional ajax requests made, but one or more ajax requests had occurred already, a deprecation error will be fired.

Impacts: 
Module developers