Skip to content

Commit

Permalink
Simplify the last assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Nov 28, 2023
1 parent 6e6231e commit 0c37517
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/e2e/specs/editor/plugins/block-directory.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ test.describe( 'Block Directory', () => {
);
} );

test( 'Should be able to add (the first) block', async ( {
editor,
page,
} ) => {
test( 'Should be able to add (the first) block', async ( { page } ) => {
// Mock response for search with the block.
await page.route(
( url ) => matchUrl( url, SEARCH_URLS ),
Expand Down Expand Up @@ -247,10 +244,5 @@ test.describe( 'Block Directory', () => {
name: `Block: ${ MOCK_BLOCK1.title }`,
} )
).toBeVisible();
await expect.poll( editor.getBlocks ).toMatchObject( [
{
name: MOCK_BLOCK1.name,
},
] );
} );
} );

0 comments on commit 0c37517

Please sign in to comment.