Problem/Motivation
Our current suite of phpunit tests are dated. We need to modernize them. We also should refactor them a bit so we can provide some code reuse with new Payment Element tests.
Issue fork commerce_stripe-3591766
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
tomtech commentedThis overhauls the Stripe browser-based checkout test suite to be more reliable, faster, and easier to maintain. The core problem was that the old tests used sleep() calls and synchronous assertions that raced against Stripe's asynchronous iframe initialization, causing intermittent failures in CI. All test infrastructure has been consolidated into a new shared base class, and all PHP 8 attribute-based annotations have replaced legacy doc-comment annotations throughout.
Key improvements: