From bffe12b9451e9fac4886a0a8bb5d47dd1f571b0d Mon Sep 17 00:00:00 2001 From: Alexandre Lara Date: Thu, 4 Jan 2024 10:38:32 -0300 Subject: [PATCH] Product Gallery block: Fix e2e tests for Thumbnails block (#43060) * Fix e2e tests for thumbnails change * Add changelog --- .../product-gallery.block_theme.side_effects.spec.ts | 4 +--- .../fix-e2e-tests-for-product-gallery-thumbnails-block | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 plugins/woocommerce/changelog/fix-e2e-tests-for-product-gallery-thumbnails-block diff --git a/plugins/woocommerce-blocks/tests/e2e/tests/product-gallery/product-gallery.block_theme.side_effects.spec.ts b/plugins/woocommerce-blocks/tests/e2e/tests/product-gallery/product-gallery.block_theme.side_effects.spec.ts index a838cfb1937..43f25c6bc98 100644 --- a/plugins/woocommerce-blocks/tests/e2e/tests/product-gallery/product-gallery.block_theme.side_effects.spec.ts +++ b/plugins/woocommerce-blocks/tests/e2e/tests/product-gallery/product-gallery.block_theme.side_effects.spec.ts @@ -136,9 +136,7 @@ test.describe( `${ blockData.name }`, () => { expect( visibleLargeImageId ).toBe( firstImageThumbnailId ); } ); - // @todo: Fix this test. It's failing because the thumbnail images aren't generated correctly when the products are imported via .xml: https://github.com/woocommerce/woocommerce/issues/31646 - // eslint-disable-next-line playwright/no-skipped-test - test.skip( 'should change the image when the user click on a thumbnail image', async ( { + test( 'should change the image when the user click on a thumbnail image', async ( { page, editorUtils, pageObject, diff --git a/plugins/woocommerce/changelog/fix-e2e-tests-for-product-gallery-thumbnails-block b/plugins/woocommerce/changelog/fix-e2e-tests-for-product-gallery-thumbnails-block new file mode 100644 index 00000000000..36ac35618e4 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-e2e-tests-for-product-gallery-thumbnails-block @@ -0,0 +1,5 @@ +Significance: patch +Type: tweak +Comment: Update e2e tests for Product Gallery Thumbnails block + +