-
Notifications
You must be signed in to change notification settings - Fork 69
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
Merge split UPE tests with main gateway tests #7954
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.27 MB ℹ️ View Unchanged
|
c31b65d
to
4d9bbb6
Compare
…d to test regressions
…ayment_intent_id param
93adcd7
to
c4e521c
Compare
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
d74f2ed
to
236e05e
Compare
0cd1b8c
to
88e61d2
Compare
35dce83
to
8dde4c2
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a massive undertaking but it's really nice to see all of this consolidation! Thanks for working on it.
As we discussed, the E2E tests are failing on develop
so it's hard to understand if the changes here are currently passing. But I can see they were passing in previous runs, so I think it's likely that the changes here aren't contributing to the failures on the latest runs. As you mentioned, you don't intend to merge this until the E2E tests are passing on develop
.
The unit tests are passing and the changes seem solid from what I can see(there's a lot). I left a couple really small comments/text changes. I'll go ahead and approve as those changes aren't blockers to anything. Really nice work!
Blocked by failing the e2e test on |
…into merge/upe-non-upe-tests
…into merge/upe-non-upe-tests
Co-authored-by: Timur Karimov <[email protected]>
Closes #7953
Changes proposed in this Pull Request
This PR merges three unit test suites into one, making
test-class-wc-payment-gateway-wcpay.php
the only test suite that covers everything. While combining, several improvements were made to the tests. The most significant one is we don't mock the unit under tests now.Additionally, this PR removes the duplicates from E2E tests. Previously, we had multiple test suites checking e.g. saving cards and each test suite was doing it under different setting e.g. UPE or legacy card. Since we streamlined them now, there's no need to have duplicated tests either.
Tests that, in my view, need further analysis to comprehend their outcomes are accompanied by my comments. These comments detail whether the test was removed, relocated to a file, or modified. If a test doesn't have a comment, this means it was simply moved to the main gateway test suite w/o any big modifications, but of course feel free to raise any questions you might have.
Testing instructions
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge