Commit 46c4d5104e3 for woocommerce
commit 46c4d5104e30b40972c5c1c3d4b13c1786b8f10a
Author: Luigi Teschio <gigitux@gmail.com>
Date: Thu Aug 13 13:10:53 2026 +0200
Reenable review action tests (#67616)
diff --git a/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js b/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js
index a6fccef26e4..7b48682ed3a 100644
--- a/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js
+++ b/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js
@@ -109,7 +109,7 @@ describe( 'ReviewsPanel', () => {
expect( screen.queryByText( 'Delete' ) ).toBeInTheDocument();
} );
- it.skip( 'should trigger updateReview with status approved when Approve is clicked', () => {
+ it( 'should trigger updateReview with status approved when Approve is clicked', () => {
const clickHandler = jest.fn( () => {
return Promise.resolve();
} );
@@ -120,6 +120,7 @@ describe( 'ReviewsPanel', () => {
isRequesting={ false }
reviews={ [ REVIEW ] }
updateReview={ clickHandler }
+ clearReviewsCache={ jest.fn() }
createNotice={ () => {} }
/>
);
@@ -129,7 +130,7 @@ describe( 'ReviewsPanel', () => {
} );
} );
- it.skip( 'should trigger updateReview with status spam when Mark as spam is clicked', () => {
+ it( 'should trigger updateReview with status spam when Mark as spam is clicked', () => {
const clickHandler = jest.fn( () => {
return Promise.resolve();
} );
@@ -140,6 +141,7 @@ describe( 'ReviewsPanel', () => {
isRequesting={ false }
reviews={ [ REVIEW ] }
updateReview={ clickHandler }
+ clearReviewsCache={ jest.fn() }
createNotice={ () => {} }
/>
);
@@ -149,7 +151,7 @@ describe( 'ReviewsPanel', () => {
} );
} );
- it.skip( 'should trigger deleteReview with review id when delete is clicked', () => {
+ it( 'should trigger deleteReview with review id when delete is clicked', () => {
const clickHandler = jest.fn( () => {
return Promise.resolve();
} );
@@ -160,6 +162,7 @@ describe( 'ReviewsPanel', () => {
isRequesting={ false }
reviews={ [ REVIEW ] }
deleteReview={ clickHandler }
+ clearReviewsCache={ jest.fn() }
createNotice={ () => {} }
/>
);