Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ This block is deprecated. Please use the Columns block instead. ([Source](https:
- **Supports:** interactivity (clientNavigation), ~~inserter~~
- **Attributes:** columns, content, width

## Verse
## Poetry

Insert poetry. Use special spacing formats. Or quote song lyrics. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/verse))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const blockTransforms = [
'Heading',
'Preformatted',
'Pullquote',
'Verse',
'Poetry',
'Code',
...transformsWithInnerBlocks,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const transformsWithInnerBlocks = [ 'Columns', 'Group' ];
const blockTransforms = [
'Paragraph',
'Code',
'Verse',
'Poetry',
...transformsWithInnerBlocks,
];

Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/verse/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/verse",
"title": "Verse",
"title": "Poetry",
"category": "text",
"description": "Insert poetry. Use special spacing formats. Or quote song lyrics.",
"keywords": [ "poetry", "poem" ],
"keywords": [ "poetry", "poem", "verse", "stanza", "song", "lyrics" ],
"textdomain": "default",
"attributes": {
"content": {
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/verse/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default function VerseEdit( props ) {
content: nextContent,
} );
} }
aria-label={ __( 'Verse text' ) }
placeholder={ __( 'Write verse…' ) }
aria-label={ __( 'Poetry text' ) }
placeholder={ __( 'Write poetry…' ) }
onRemove={ onRemove }
onMerge={ mergeBlocks }
{ ...blockProps }
Expand Down
12 changes: 6 additions & 6 deletions packages/block-library/src/verse/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
* WordPress dependencies
*/
import { getBlockTypes, unregisterBlockType } from '@wordpress/blocks';
import { registerCoreBlocks } from '@wordpress/block-library';
import { ENTER } from '@wordpress/keycodes';
import { registerCoreBlocks } from '@wordpress/block-library';

beforeAll( () => {
// Register all core blocks
Expand All @@ -34,10 +34,10 @@ describe( 'Verse block', () => {
const screen = await initializeEditor();

// Add block
await addBlock( screen, 'Verse' );
await addBlock( screen, 'Poetry' );

// Get block
const verseBlock = await getBlock( screen, 'Verse' );
const verseBlock = await getBlock( screen, 'Poetry' );
expect( verseBlock ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
} );
Expand All @@ -50,15 +50,15 @@ describe( 'Verse block', () => {
} );

// Get block
const verseBlock = await getBlock( screen, 'Verse' );
const verseBlock = await getBlock( screen, 'Poetry' );
expect( verseBlock ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
} );

it( 'should produce expected markup for multiline text', async () => {
// Arrange
const screen = await initializeEditor();
await addBlock( screen, 'Verse' );
await addBlock( screen, 'Poetry' );

// Act
const verseTextInput =
Expand All @@ -82,7 +82,7 @@ describe( 'Verse block', () => {
it( 'should split on triple Enter', async () => {
// Arrange
const screen = await initializeEditor();
await addBlock( screen, 'Verse' );
await addBlock( screen, 'Poetry' );

// Act
const verseTextInput =
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/verse/test/transforms.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
getBlockTransformOptions,
} from 'test/helpers';

const block = 'Verse';
const block = 'Poetry';
const initialHtml = `
<!-- wp:verse {"textAlign":"center"} -->
<pre class="wp-block-verse has-text-align-center">Come<br>Home.</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class EditorPage {
accessibilityIdKey;
accessibilityIdXPathAttrib;
paragraphBlockName = 'Paragraph';
verseBlockName = 'Verse';
verseBlockName = 'Poetry';
orderedListButtonName = 'Ordered';

constructor( driver ) {
Expand Down Expand Up @@ -1125,7 +1125,7 @@ const blockNames = {
separator: 'Separator',
socialIcons: 'Social Icons',
spacer: 'Spacer',
verse: 'Verse',
verse: 'Poetry',
shortcode: 'Shortcode',
group: 'Group',
buttons: 'Buttons',
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/plugins/post-type-locking.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ test.describe( 'Post-type locking', () => {
'Group',
'Preformatted',
'Pullquote',
'Verse',
'Poetry',
] );
} );
} );
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/specs/editor/various/block-visibility.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ test.describe( 'Block Visibility', () => {
.getByRole( 'searchbox', {
name: 'Search for a block',
} )
.fill( 'verse' );
.fill( 'poetry' );
const blockCategories = page
.getByRole( 'region', {
name: 'Available block types',
Expand All @@ -200,8 +200,8 @@ test.describe( 'Block Visibility', () => {
).toHaveCount( 1 );

await expect(
textCategoryBlocksList.getByRole( 'checkbox', { name: 'Verse' } ),
'Verse block should be visible'
textCategoryBlocksList.getByRole( 'checkbox', { name: 'Poetry' } ),
'Poetry block should be visible'
).toBeVisible();
} );

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/inserting-blocks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ test.describe( 'Inserting blocks (@firefox, @webkit)', () => {
name: 'Search',
} )
.first()
.fill( 'Verse' );
.fill( 'Poetry' );
await page.getByRole( 'button', { name: 'Browse All' } ).click();

await expect(
Expand All @@ -672,7 +672,7 @@ test.describe( 'Inserting blocks (@firefox, @webkit)', () => {
name: 'Search',
} )
.first()
).toHaveValue( 'Verse' );
).toHaveValue( 'Poetry' );
await expect(
page.getByRole( 'listbox', { name: 'Blocks' } ).first()
).toHaveCount( 1 );
Expand Down
2 changes: 1 addition & 1 deletion test/native/integration/editor-history.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe( 'Editor History', () => {
const screen = await initializeEditor();

// Act
await addBlock( screen, 'Verse' );
await addBlock( screen, 'Poetry' );
await addBlock( screen, 'Image' );
await addBlock( screen, 'Paragraph' );

Expand Down
Loading