-
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
Rename dispute action from acceptTransactionDetailsDispute()
to acceptDispute()
#7456
Conversation
…DetailsDispute()` to `acceptDispute()`.
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: -657 B (0%) Total Size: 1.43 MB
ℹ️ View Unchanged
|
acceptTransactionDetailsDispute()
to acceptDispute()
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.
Nice one @shendy-a8c 🙌
I've confirmed:
- accepting a dispute on the Transaction Details screen works as expected
- the redirect from Dispute details → Transaction details works as expected
I've looked at the failing e2e test and it is unrelated to this PR:
FAIL tests/e2e/specs/wcpay/merchant/merchant-orders-status-change.spec.js
Co-authored-by: Eric Jinks <[email protected]>
I have approved #7458 and this PR is ready to merge ✅ |
Partially fixes #7363
Changes proposed in this Pull Request
acceptTransactionDetailsDispute()
toacceptDispute()
.acceptDispute()
calls that got passed dispute id and change it so we pass dispute object because the new (renamed fromacceptTransactionDetailsDispute()
)acceptDispute()
now accepts a dispute object instead of dispute id.Testing instructions
The action rename affects useDispute() hook and that hook is used in client/disputes/details/index.tsx. This can be ignored because we're removing the legacy dispute details (part of #7363).
The rename also affects client/disputes/redirect-to-transaction-details/index.tsx, so we need to test that redirection from dispute details page to transaction details page still works.
4000000000000259
that will trigger a dispute.Also
nb: as per the time of this writing,
merchant-orders-status-change.spec.js
test has been failing. Likely it's due to the change outside of this PR as I see that test fails in other PRs as well.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