Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Maybe one out of four times the CouponRedemptionPaneTest test fails. I wonder if it is due to an assert not waiting for AJAX properly?
Example build: https://travis-ci.org/drupalcommerce/commerce/jobs/275090635
1)
Drupal\Tests\commerce_promotion\FunctionalJavascript\CouponRedemptionPaneTest::testCheckoutWithMainSubmit
Behat\Mink\Exception\ResponseTextException: The text "Visa ending in
1111" was not found anywhere in the text of the current page.
In
/home/travis/build/drupalcommerce/drupal-8/drupal/vendor/behat/mink/src/WebAssert.php:787
/home/travis/build/drupalcommerce/drupal-8/drupal/vendor/behat/mink/src/WebAssert.php:262
/home/travis/build/drupalcommerce/commerce/modules/promotion/tests/src/FunctionalJavascript/CouponRedemptionPaneTest.php:256
Comment | File | Size | Author |
---|---|---|---|
#6 | 2909308-6.patch | 914 bytes | alexpott |
|
Comments
Comment #2
mglamanComment #3
mglamanThe test code
Something is causing it to not continue, which means there is either a PHP error or validation error.
Comment #4
alexpottLooking at the HTML generated it seems that the expectation of 1111 is incorrect. It has a visa ending in 9999 - this might be to do with #2930209: Random fail in PaymentMethodStorageTest
Comment #5
alexpottThis would explain why there has not been a pass since that patch was committed.
Comment #6
alexpottHere's a patch.
Comment #7
alexpottThis is critical because it is now not random.
Comment #9
bojanz CreditAttribution: bojanz at Centarro commentedCommitted, thanks!