From 0c37517205a91b8976cc0c8f8c02171aecc9dec1 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 28 Nov 2023 19:59:09 +0400 Subject: [PATCH] Simplify the last assertion --- test/e2e/specs/editor/plugins/block-directory.spec.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/e2e/specs/editor/plugins/block-directory.spec.js b/test/e2e/specs/editor/plugins/block-directory.spec.js index 63cff78516a0a7..28700e787e8836 100644 --- a/test/e2e/specs/editor/plugins/block-directory.spec.js +++ b/test/e2e/specs/editor/plugins/block-directory.spec.js @@ -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 ), @@ -247,10 +244,5 @@ test.describe( 'Block Directory', () => { name: `Block: ${ MOCK_BLOCK1.title }`, } ) ).toBeVisible(); - await expect.poll( editor.getBlocks ).toMatchObject( [ - { - name: MOCK_BLOCK1.name, - }, - ] ); } ); } );