From c675476bacc4c2d9a8e97bf44e52957f13b992af Mon Sep 17 00:00:00 2001
From: Kelly Dwan <ryelle@users.noreply.github.com>
Date: Wed, 13 Jan 2021 15:22:52 -0500
Subject: [PATCH] Update e2e test with UI changes

---
 packages/e2e-test-utils/src/inserter.js                       | 2 +-
 .../specs/editor/plugins/block-directory-add.test.js          | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/packages/e2e-test-utils/src/inserter.js b/packages/e2e-test-utils/src/inserter.js
index 0b58f730f9bfb..ced1e67e2384f 100644
--- a/packages/e2e-test-utils/src/inserter.js
+++ b/packages/e2e-test-utils/src/inserter.js
@@ -188,7 +188,7 @@ export async function insertBlockDirectoryBlock( searchTerm ) {
 
 	// Grab the first block in the list
 	const insertButton = await page.waitForSelector(
-		'.block-directory-downloadable-blocks-list li:first-child button'
+		'.block-directory-downloadable-blocks-list div:first-child button'
 	);
 	await insertButton.click();
 	// We should wait until the inserter closes and the focus moves to the content.
diff --git a/packages/e2e-tests/specs/editor/plugins/block-directory-add.test.js b/packages/e2e-tests/specs/editor/plugins/block-directory-add.test.js
index dde952f627477..a659716602715 100644
--- a/packages/e2e-tests/specs/editor/plugins/block-directory-add.test.js
+++ b/packages/e2e-tests/specs/editor/plugins/block-directory-add.test.js
@@ -171,7 +171,9 @@ describe( 'adding blocks from block directory', () => {
 				document.querySelector( '.block-editor-inserter__main-area' )
 					.innerHTML
 		);
-		expect( selectorContent ).toContain( 'has-no-results' );
+		expect( selectorContent ).toContain(
+			'block-editor-inserter__no-results'
+		);
 	} );
 
 	it( 'Should be able to add (the first) block.', async () => {