WordPoints / woocommerce

WordPoints module integrating with WooCommerce
2 stars 1 forks source link

[WooCommerce 3.3.0] Failures in tests that expect a payment error #41

Closed JDGrimes closed 6 years ago

JDGrimes commented 6 years ago

The error is still thrown, but the HTML is not identical:

1) WordPoints_WooCommerce_Points_Gateway_Test::test_processing_payment
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-<ul class="woocommerce-error">
+<ul class="woocommerce-error" role="alert">
            <li>WordPoints_WooCommerce_Points_Gateway_Test</li>
    </ul>

/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/points/gateways/points.php:521
/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/points/gateways/points.php:193

We should ideally make the tests a bit more generic, I guess.