From ddc4c23341ca29cde516603452c49a11949dddd0 Mon Sep 17 00:00:00 2001 From: Ian Yu-Hsun Lin Date: Tue, 9 Jul 2024 12:26:18 +0800 Subject: [PATCH] Fix JS lint --- tests/e2e/specs/product-editor/block-integration.test.js | 4 +++- tests/e2e/utils/product-editor.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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();