Skip to content

Commit

Permalink
Update UBE test descriptions and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Oct 6, 2023
1 parent 236b6b9 commit 404518f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe( 'Unsupported block', () => {
} );
} );

it( 'show edit block option when UBE is available', async () => {
it( 'requests web editor when UBE is available', async () => {
await initializeEditor( {
initialHtml: TABLE_BLOCK_HTML,
capabilities: {
Expand All @@ -114,7 +114,7 @@ describe( 'Unsupported block', () => {
const actionButton = screen.getByText( 'Edit using web editor' );
expect( actionButton ).toBeVisible();

// UBE is requested after the modal hides and a timeout is ran
// UBE is requested after the modal hides and running a timeout
await withFakeTimers( async () => {
fireEvent.press( actionButton );
fireEvent(
Expand All @@ -126,7 +126,7 @@ describe( 'Unsupported block', () => {
expect( requestUnsupportedBlockFallback ).toHaveBeenCalled();
} );

it( 'does not show edit block option when UBE is not available', async () => {
it( 'does not show web editor option when UBE is not available', async () => {
await initializeEditor( {
initialHtml: TABLE_BLOCK_HTML,
capabilities: {
Expand All @@ -147,9 +147,9 @@ describe( 'Unsupported block', () => {
expect( actionButton ).toBeNull();
} );

it( 'does not show edit block option when block is incompatible with UBE', async () => {
it( 'does not show web editor option when block is incompatible with UBE', async () => {
await initializeEditor( {
// Reusable blocks/Patterns is the only block type unsupported in UBE.
// Reusable blocks/Patterns is a block type unsupported by UBE
initialHtml: '<!-- wp:block {"ref":7387} /-->',
capabilities: {
unsupportedBlockEditor: true,
Expand Down

0 comments on commit 404518f

Please sign in to comment.