Skip to content

test(payments): Add integration, unit, and component tests for Subscription Management flows#20682

Open
xlisachan wants to merge 1 commit into
mainfrom
PAY-3687_manage
Open

test(payments): Add integration, unit, and component tests for Subscription Management flows#20682
xlisachan wants to merge 1 commit into
mainfrom
PAY-3687_manage

Conversation

@xlisachan

@xlisachan xlisachan commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This pull request

  • Adds integration tests for SubscriptionManagementService, covering cancel, resubscribe, Stripe payment method updates, PayPal billing agreement creation, and manage page content retrieval
  • Adds component tests for CancelSubscription, StaySubscribed, PaymentMethodManagement, PaypalManagement, and SubscriptionContent
  • Adds unit tests for formatPlanInterval, getCardIcon, isPaymentIntent, and isPaymentIntentId
  • Extends existing test coverage for CartService, cart.utils, and EligibilityService

Issue that this pull request solves

Closes: PAY-3687

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.

@xlisachan xlisachan marked this pull request as ready for review June 3, 2026 20:59
@xlisachan xlisachan requested a review from a team as a code owner June 3, 2026 20:59
@xlisachan xlisachan force-pushed the PAY-3687_manage branch 7 times, most recently from 96c0c17 to 4c91c6e Compare June 4, 2026 14:51
@xlisachan xlisachan changed the title test(payments): Add tests for cart, eligibility, management, etc test(payments): Add integration, unit, and component tests for Subscription Management flows Jun 4, 2026
@xlisachan xlisachan force-pushed the PAY-3687_manage branch 4 times, most recently from 88bf5d3 to a053df7 Compare June 8, 2026 14:10
This pull request
- Adds integration tests for `SubscriptionManagementService`, covering cancel, resubscribe, Stripe payment method updates, PayPal billing agreement creation, and manage page content retrieval
- Adds component tests for `CancelSubscription`, `StaySubscribed`, `PaymentMethodManagement`, `PaypalManagement`, and `SubscriptionContent`
- Adds unit tests for `formatPlanInterval`, `getCardIcon`, `isPaymentIntent`, and `isPaymentIntentId`
- Extends existing test coverage for `CartService`, `cart.utils`, and `EligibilityService`

Closes: PAY-3687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant