Drupal 10.2 webform records a console error on stripe payment
Captured in https://github.com/colemanw/webform_civicrm/actions/runs/7312817786/job/19923741300
There was 1 failure:
1) Drupal\Tests\webform_civicrm\FunctionalJavascript\StripeTest::testAjaxSubmitContribution
Error
at http://127.0.0.1:8080/core/misc/ajax.js?v=10.2.0:196:32
at http://127.0.0.1:8080/core/misc/ajax.js?v=10.2.0:1915:3
/home/runner/drupal/web/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:138
/home/runner/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
FAILURES!
Tests: 71, Assertions: 1878, Failures: 1, Skipped: 1.
Payment is done correctly, just the console error was failing the test.
Have suppressed it using https://github.com/colemanw/webform_civicrm/pull/931/files#diff-db8a63c902b85b4f8e27329f87fb00ddbe8e3c48b79241997ebb030647de45dcR81 to pass the testing, but the ajax console error is still present.
It does not happen with any other processor so seems specific to stripe? To replicate:
- Create a webform and enable ajax in webform setting.
- Enable contribution and stripe processor.
- Submit the webform with your console open.
- Notice an ajax error after submit.