- Issue created by @ivnish
- Status changed to Closed: works as designed
3 months ago 1:50pm 18 September 2024
Sometimes ModalFormTest failed because of "assertWaitOnAjaxRequest" failed. This happens because of core changes here 📌 Stabilize FunctionalJavascript testing AJAX: add ::assertExpectedAjaxRequest() Fixed .
@bnjmnm explaining 📌 Stabilize FunctionalJavascript testing AJAX: add ::assertExpectedAjaxRequest() Fixed :
So for tests that were previously passing and now fail on assertWaitOnAjaxRequest(), the first thing to try is removing the call entirely. It was very common to add these calls in places where they were not needed, where they were used for waiting on a JS operation to complete that wasn't necessarily something that used the Drupal AJAX API.
I removed "assertWaitOnAjaxRequest" and test passed all the time
Run ModalFormTest multiple times. I don't know another way :(
Remove "assertWaitOnAjaxRequest" from test
Closed: works as designed
4.0
Flag core