Skip to content

fix MPP-4152 - refactor(e2e-tests): v2+v3 SubscriptionPaymentPage #5515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

groovecoder
Copy link
Member

  • Adds isVersion3 check and new text getters to SubscriptionPaymentPage.
  • Updates relay-e2e.spec.ts to use new getters so the tests will pass on both v2 + v3 SubPlat checkout pages.

This PR fixes #MPP-4152.

How to test:
(Either locally or with the GitHub Action)

  • npx playwright test e2e-tests/specs/relay-e2e.spec.ts while SubPlat stage is on V3 or V2
    • Tests should pass
  • l10n changes have been submitted to the l10n repository, if any.
  • I've added a unit test to test for potential regressions of this bug.
  • I've added or updated relevant docs in the docs/ directory.
  • All UI revisions follow the coding standards, and use Protocol / Nebula colors where applicable (see /frontend/src/styles/colors.scss).
  • Commits in this PR are minimal and have descriptive commit messages.

* Adds `isVersion3` check and new text getters to `SubscriptionPaymentPage`.
* Updates `relay-e2e.spec.ts` to use new getters so the tests will pass on
  both v2 + v3 SubPlat checkout pages.
Copy link
Collaborator

@vpremamozilla vpremamozilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good to me; from what i can see the fix allows compatibility with both old and new versions of the payment subscription flow.

@groovecoder groovecoder added this pull request to the merge queue Apr 18, 2025
Merged via the queue into main with commit 5a61c61 Apr 18, 2025
32 checks passed
@groovecoder groovecoder deleted the fix-e2e-tests-for-sp3-MPP-4152 branch April 18, 2025 13:30
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.

2 participants