From cdc5b49de6159f2c76b92819a09a0670d5d257a7 Mon Sep 17 00:00:00 2001 From: "Joen A." <1204802+jasmussen@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:03:02 +0200 Subject: [PATCH] Try: Update block warnings. (#64997) Co-authored-by: jasmussen Co-authored-by: SantosGuillamot --- .../components/block-list/block-invalid-warning.js | 4 ++-- .../block-editor/src/components/warning/content.scss | 11 ++--------- packages/block-library/src/missing/edit.js | 4 ++-- test/e2e/specs/editor/various/invalid-block.spec.js | 2 +- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/packages/block-editor/src/components/block-list/block-invalid-warning.js b/packages/block-editor/src/components/block-list/block-invalid-warning.js index 42ec5f9deb84d0..fb235cbce9ca21 100644 --- a/packages/block-editor/src/components/block-list/block-invalid-warning.js +++ b/packages/block-editor/src/components/block-list/block-invalid-warning.js @@ -107,12 +107,12 @@ export default function BlockInvalidWarning( { clientId } ) { onClick={ convert.toRecoveredBlock } variant="primary" > - { __( 'Attempt Block Recovery' ) } + { __( 'Attempt recovery' ) } , ] } secondaryActions={ secondaryActions } > - { __( 'This block contains unexpected or invalid content.' ) } + { __( 'Block contains unexpected or invalid content.' ) } { compare && ( { await expect( editor.canvas .getByRole( 'document', { name: 'Block: Paragraph' } ) - .getByRole( 'button', { name: 'Attempt Block Recovery' } ) + .getByRole( 'button', { name: 'Attempt recovery' } ) ).toBeVisible(); expect( hasAlert ).toBe( false );