Skip to content

Commit

Permalink
Fix JS lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlin committed Jul 9, 2024
1 parent e36ed4d commit ddc4c23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/e2e/specs/product-editor/block-integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/utils/product-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit ddc4c23

Please sign in to comment.