Skip to content

Commit

Permalink
Remove a useless test.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Sep 11, 2020
1 parent cffb31c commit 11b8ff3
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,27 +193,4 @@ describe( 'adding blocks from block directory', () => {
// The block will auto select and get added, make sure we see it in the content
expect( await getEditedPostContent() ).toMatchSnapshot();
} );

it( 'Should not see Block Directory results after install', async () => {
// Setup our mocks
await setUpResponseMocking( MOCK_BLOCKS_RESPONSES );

// Search for the block via the inserter
await searchForBlock( MOCK_BLOCK1.title );

// Grab the first block in the list -> Needs to be the first one, the mock response expects it.
const addBtn = await page.waitForSelector(
'.block-directory-downloadable-blocks-list li:first-child button'
);

// Add the block
await addBtn.click();

const hiddenBtn = await page.waitForSelector(
'.block-directory-downloadable-blocks-list li:first-child button',
{ hidden: true }
);

expect( hiddenBtn ).toBeNull();
} );
} );

0 comments on commit 11b8ff3

Please sign in to comment.