diff --git a/plugins/woocommerce/changelog/47724-fix-flaky-e2e-test-color-palette-picker b/plugins/woocommerce/changelog/47724-fix-flaky-e2e-test-color-palette-picker new file mode 100644 index 00000000000..013d9909bf9 --- /dev/null +++ b/plugins/woocommerce/changelog/47724-fix-flaky-e2e-test-color-palette-picker @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +E2E tests: fixing flaky color palette picker test diff --git a/plugins/woocommerce/tests/e2e-pw/tests/customize-store/assembler/color-picker.spec.js b/plugins/woocommerce/tests/e2e-pw/tests/customize-store/assembler/color-picker.spec.js index 36ce85a5cf3..7b6c7e09035 100644 --- a/plugins/woocommerce/tests/e2e-pw/tests/customize-store/assembler/color-picker.spec.js +++ b/plugins/woocommerce/tests/e2e-pw/tests/customize-store/assembler/color-picker.spec.js @@ -308,10 +308,6 @@ test.describe( 'Assembler -> Color Pickers', () => { response.status() === 200 ); - await saveButton.click(); - - await waitResponse; - const buttons = await editor .locator( '.wp-block-button > .wp-block-button__link' ) .evaluateAll( ( elements ) => @@ -392,6 +388,10 @@ test.describe( 'Assembler -> Color Pickers', () => { for ( const element of headersInCoverBlock ) { expect( element.color ).toEqual( 'rgb(255, 255, 255)' ); } + + await saveButton.click(); + + await waitResponse; } ); }