From d8453be3dfee90888689b50f0fdae451351ac269 Mon Sep 17 00:00:00 2001 From: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com> Date: Thu, 21 Mar 2024 19:20:32 +0200 Subject: [PATCH] [e2e tests] Disable the task list reminder bar in products list (#45772) Disable the task list reminder bar, it can interfere with the quick actions --- .../changelog/e2e-fix-product-list-quick-actions | 4 ++++ .../tests/e2e-pw/tests/merchant/product-delete.spec.js | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 plugins/woocommerce/changelog/e2e-fix-product-list-quick-actions diff --git a/plugins/woocommerce/changelog/e2e-fix-product-list-quick-actions b/plugins/woocommerce/changelog/e2e-fix-product-list-quick-actions new file mode 100644 index 000000000000..9c6a2c5a469d --- /dev/null +++ b/plugins/woocommerce/changelog/e2e-fix-product-list-quick-actions @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +E2E tests: fix issues with quick actions in products list diff --git a/plugins/woocommerce/tests/e2e-pw/tests/merchant/product-delete.spec.js b/plugins/woocommerce/tests/e2e-pw/tests/merchant/product-delete.spec.js index e36bd47f9fc6..8af207910cc6 100644 --- a/plugins/woocommerce/tests/e2e-pw/tests/merchant/product-delete.spec.js +++ b/plugins/woocommerce/tests/e2e-pw/tests/merchant/product-delete.spec.js @@ -25,6 +25,14 @@ baseTest.describe( 'Products > Delete Product', () => { } ); } }, + page: async ( { page, wcAdminApi }, use ) => { + // Disable the task list reminder bar, it can interfere with the quick actions + await wcAdminApi.post( 'options', { + woocommerce_task_list_reminder_bar_hidden: 'yes', + } ); + + await use( page ); + }, } ); test( 'can delete a product from edit view', async ( {