GH#1508: test: stabilize checkout regressions#1523
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughTwo production-side fixes address failing type checks and a misfiring email-verification notice. Three test files are updated to eliminate shared discount-code fixtures, randomize product/customer slugs, tighten tax-breakdown and array assertions, and populate both ChangesCheckout test stabilization and production fixes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/WP_Ultimo/Checkout/Cart_Addon_Pricing_Test.php`:
- Around line 288-290: The delete_meta() calls on self::$membership for
Membership::META_DISCOUNT_CODE and Membership::META_VERIFIED_PAYMENT_DISCOUNT
are removing the metadata, but these changes are not being persisted. Since the
test persisted the discount earlier via self::$membership->save(), the cleanup
must also be saved to ensure deterministic state and prevent cross-test
contamination. Add a call to self::$membership->save() after the delete_meta()
operations to persist the cleanup to storage.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 820e62a1-cf4d-4f59-91e5-29dcde2868db
📒 Files selected for processing (5)
inc/checkout/class-checkout-pages.phpinc/functions/checkout.phptests/WP_Ultimo/Checkout/Cart_Addon_Pricing_Test.phptests/WP_Ultimo/Checkout/Cart_Test.phptests/WP_Ultimo/Checkout/Signup_Fields/Base_Signup_Field_Test.php
|
CLAIM_RELEASED reason=worker_complete runner=superdav42 ts=2026-06-22T19:47:29Z aidevops_version=3.21.12 opencode_version=1.17.9 |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
wu_multiple_memberships_enabled()to return a boolean.Files
inc/checkout/class-checkout-pages.phpinc/functions/checkout.phptests/WP_Ultimo/Checkout/Cart_Addon_Pricing_Test.phptests/WP_Ultimo/Checkout/Cart_Test.phptests/WP_Ultimo/Checkout/Signup_Fields/Base_Signup_Field_Test.phpVerification
vendor/bin/phpunit --filter 'test_addon_only_charges_for_addon_product|test_tax_breakthrough_empty_when_no_taxes|test_add_verify_email_notice_silent_when_paid|test_get_value_uses_request_when_from_request_is_set|test_multiple_memberships_enabled|test_multiple_memberships_enabled_returns_bool'vendor/bin/phpunit --filter Cart_Addon_Pricing_Testvendor/bin/phpcs inc/checkout/class-checkout-pages.php inc/functions/checkout.php tests/WP_Ultimo/Checkout/Cart_Addon_Pricing_Test.phpgit diff --checkResolves #1508
aidevops.sh v3.21.12 plugin for OpenCode v1.17.9 with gpt-5.5 spent 44m and 445,618 tokens on this with the user in an interactive session.
Summary by CodeRabbit