From b08e74331ba2d148d9e4a30e0e8fa0ad0b0b9886 Mon Sep 17 00:00:00 2001 From: Grant Kinney Date: Wed, 10 Jul 2024 17:28:25 -0500 Subject: [PATCH] Attempts to update native snapshot tests --- .../test/__snapshots__/index.native.js.snap | 24 +++++++++---------- .../src/embed/test/index.native.js | 4 ++-- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/packages/block-library/src/embed/test/__snapshots__/index.native.js.snap b/packages/block-library/src/embed/test/__snapshots__/index.native.js.snap index 5f1889dfa4aaf7..5b55de635055db 100644 --- a/packages/block-library/src/embed/test/__snapshots__/index.native.js.snap +++ b/packages/block-library/src/embed/test/__snapshots__/index.native.js.snap @@ -106,21 +106,13 @@ exports[`Embed block edit URL sets empty state when setting an empty URL 1`] = ` exports[`Embed block insert via slash inserter insert generic embed block 1`] = `""`; -exports[`Embed block insert via slash inserter inserts Twitter embed block 1`] = `""`; +exports[`Embed block insertion inserts Twitter Embed block 1`] = `""`; -exports[`Embed block insert via slash inserter inserts Vimeo embed block 1`] = `""`; +exports[`Embed block insertion inserts Vimeo Embed block 1`] = `""`; -exports[`Embed block insert via slash inserter inserts WordPress embed block 1`] = `""`; +exports[`Embed block insertion inserts WordPress Embed block 1`] = `""`; -exports[`Embed block insert via slash inserter inserts YouTube embed block 1`] = `""`; - -exports[`Embed block insertion inserts Twitter embed block 1`] = `""`; - -exports[`Embed block insertion inserts Vimeo embed block 1`] = `""`; - -exports[`Embed block insertion inserts WordPress embed block 1`] = `""`; - -exports[`Embed block insertion inserts YouTube embed block 1`] = `""`; +exports[`Embed block insertion inserts YouTube Embed block 1`] = `""`; exports[`Embed block insertion inserts generic embed block 1`] = `""`; @@ -180,7 +172,13 @@ https://twitter.com/notnownikki " `; -exports[`Embed block set URL when empty block sets empty URL when dismissing edit URL modal 1`] = `""`; +exports[`Embed block set URL when empty block sets empty URL when dismissing edit URL modal 1`] = ` +" +
+https://twitter.com/notnownikki +
+" +`; exports[`Embed block sets block caption 1`] = ` " diff --git a/packages/block-library/src/embed/test/index.native.js b/packages/block-library/src/embed/test/index.native.js index 1b456c668a9c52..9746ae1b1eb0fb 100644 --- a/packages/block-library/src/embed/test/index.native.js +++ b/packages/block-library/src/embed/test/index.native.js @@ -230,7 +230,7 @@ describe( 'Embed block', () => { } ); MOST_USED_PROVIDERS.forEach( ( { title } ) => - it( `inserts ${ title } embed block`, async () => { + it( `inserts ${ title } block`, async () => { const { block } = await insertEmbedBlock( title ); const blockName = within( block ).getByText( title ); @@ -1000,7 +1000,7 @@ describe( 'Embed block', () => { } ); MOST_USED_PROVIDERS.forEach( ( { title } ) => - it( `inserts ${ title } embed block`, async () => { + it( `inserts ${ title } block`, async () => { const embedBlockSlashInserter = `/${ title }`; const editor = await initializeEditor( { initialHtml: EMPTY_PARAGRAPH_HTML,