drupalextension icon indicating copy to clipboard operation
drupalextension copied to clipboard

Provide more verbose output when iWaitForAjaxToFinish() fails.

Open marcoscano opened this issue 6 years ago • 2 comments

Currently error messages when an AJAX call fails are quite short:

AfterStep # Drupal\DrupalExtension\Context\MinkContext::afterJavascriptStep()
      Unable to complete AJAX request. (RuntimeException)

or

And I wait for AJAX to finish                                                                                 # MinkContext::iWaitForAjaxToFinish()
      Unable to complete AJAX request. (RuntimeException)

Could we add to that exception message more information about the event that failed?

marcoscano avatar Mar 20 '18 13:03 marcoscano

iWaitForAjaxToFinish appears to be inherently problematic function. All tests are now failing at this step for me on 4.1 using selenium/standalone-chrome:3.141.59-oxygen

brooke-heaton avatar Oct 22 '19 15:10 brooke-heaton

Related #557

mxr576 avatar Oct 28 '19 14:10 mxr576