diff --git a/tests/e2e/specs/product-editor/block-integration.test.js b/tests/e2e/specs/product-editor/block-integration.test.js index 26928e5708..a2191dc166 100644 --- a/tests/e2e/specs/product-editor/block-integration.test.js +++ b/tests/e2e/specs/product-editor/block-integration.test.js @@ -529,7 +529,9 @@ test.describe( 'Product Block Editor integration', () => { await input.fill( '-1' ); - await editorUtils.assertUnableSave( 'The minimum value of the field is 0' ); + await editorUtils.assertUnableSave( + 'The minimum value of the field is 0' + ); await expect( help ).toBeVisible(); await expect( help ).toHaveText( await editorUtils.evaluateValidationMessage( input ) diff --git a/tests/e2e/utils/product-editor.js b/tests/e2e/utils/product-editor.js index 30b2169c5a..f81ee503fd 100644 --- a/tests/e2e/utils/product-editor.js +++ b/tests/e2e/utils/product-editor.js @@ -514,8 +514,8 @@ export function getProductBlockEditorUtils( page ) { .locator( '.components-snackbar__content' ) .filter( { hasText: new RegExp( message ) } ); - const failureNoticeDismissButton = failureNotice - .getByRole( 'button' ); + const failureNoticeDismissButton = + failureNotice.getByRole( 'button' ); await expect( failureNotice ).toBeVisible();