Merchant dispute e2e tests fail when running on WooCommerce 7.7 #7487
Labels
category: e2e
Issues and PRs related to e2e tests.
component: disputes
Issues related to Disputes
component: tests
Issues related to tests
type: bug
The issue is a confirmed bug.
Describe the bug
Merchant dispute e2e tests fail when running WooCommerce 7.7. This caused the GH workflow E2E tests - All to fail before tests were skipped (#7486) in order to explicitly mark the test as broken while a solution is in progress (this issue).
Skipped tests:
merchant-disputes-save-draft-challenge.spec.js
merchant-disputes-submit-winning.spec.js
merchant-disputes-submit-losing.spec.js
These tests fail on WC 7.7 because the "Respond now" button is not rendered on the edit order screen for WC < 7.9. This is because the disputed order notice requires the hook
woocommerce_admin_order_data_after_payment_info
that was added in WC 7.9 (changelog entry).Note
Keep in mind that we need to keep tests for the flow Order Screen Dispute Notice → Dispute Details, so we should ensure this flow continues to be included in e2e tests for WC v7.9+.
To Reproduce
Additional context
The text was updated successfully, but these errors were encountered: