Skip to content

Commit

Permalink
Reword a few things
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Feb 13, 2023
1 parent 8f9fe58 commit 5e70010
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/e2e/specs/editor/various/block-deletion.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test.describe( 'Block deletion', () => {
await admin.createNewPost();
} );

test( 'deleting last block via the Block Toolbar options menu', async ( {
test( 'deleting last block via its options menu', async ( {
editor,
page,
} ) => {
Expand All @@ -26,7 +26,7 @@ test.describe( 'Block deletion', () => {
attributes: { content: 'Third' },
} );

// Make sure the last paragraph is focused.
// Ensure the last paragraph is focused.
await expect(
editor.canvas
.getByRole( 'document', {
Expand All @@ -45,7 +45,7 @@ test.describe( 'Block deletion', () => {
.getByRole( 'menuitem', { name: /Remove Paragraph/ } )
.click();

// Make sure the last block was removed.
// Ensure the last block was removed.
await expect(
editor.canvas
.getByRole( 'document', {
Expand All @@ -54,7 +54,7 @@ test.describe( 'Block deletion', () => {
.last()
).toContainText( 'Second' );

// Make sure the caret is in a correct position.
// Ensure the caret is in a correct position.
await page.keyboard.type( '| ← caret was here' );
await expect(
editor.canvas
Expand All @@ -65,7 +65,7 @@ test.describe( 'Block deletion', () => {
).toContainText( 'Second| ← caret was here' );
} );

test( 'deleting last block via the Remove Block shortcut', async ( {
test( 'deleting last block via the keyboard shortcut', async ( {
editor,
page,
pageUtils,
Expand All @@ -84,7 +84,7 @@ test.describe( 'Block deletion', () => {
attributes: { content: 'Third' },
} );

// Make sure the last paragraph is focused.
// Ensure the last paragraph is focused.
await expect(
editor.canvas
.getByRole( 'document', {
Expand All @@ -96,7 +96,7 @@ test.describe( 'Block deletion', () => {
// Remove the current paragraph via dedicated keyboard shortcut.
await pageUtils.pressKeyWithModifier( 'access', 'z' );

// Make sure the last block was removed.
// Ensure the last block was removed.
await expect(
editor.canvas
.getByRole( 'document', {
Expand All @@ -105,7 +105,7 @@ test.describe( 'Block deletion', () => {
.last()
).toContainText( 'Second' );

// Make sure the caret is in a correct position.
// Ensure the caret is in a correct position.
await page.keyboard.type( '| ← caret was here' );
await expect(
editor.canvas
Expand All @@ -130,7 +130,7 @@ test.describe( 'Block deletion', () => {
attributes: { content: 'Second' },
} );

// Leave last paragraph empty and make sure it's focused.
// Leave last paragraph empty and ensure it's focused.
await editor.insertBlock( {
name: 'core/paragraph',
} );
Expand All @@ -141,7 +141,7 @@ test.describe( 'Block deletion', () => {
// Hit backspace to remove the empty paragraph.
await page.keyboard.press( 'Backspace' );

// Make sure the last block was removed.
// Ensure the last block was removed.
await expect(
editor.canvas
.getByRole( 'document', {
Expand All @@ -150,7 +150,7 @@ test.describe( 'Block deletion', () => {
.last()
).toContainText( 'Second' );

// Make sure the caret is in a correct position.
// Ensure the caret is in a correct position.
await page.keyboard.type( '| ← caret was here' );
await expect(
editor.canvas
Expand Down

0 comments on commit 5e70010

Please sign in to comment.