From 5948dc2fc7e9fa7f12f66df3056c72c3f0e2c87f Mon Sep 17 00:00:00 2001 From: ramonjd Date: Fri, 19 Aug 2022 12:51:57 +1000 Subject: [PATCH] Now that the table of contents block has a block supports it will appear in the site editor block search results for the term 'header'. 'header' appears in the block.json description and is therefore a match. --- .../e2e-tests/specs/site-editor/global-styles-sidebar.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/e2e-tests/specs/site-editor/global-styles-sidebar.test.js b/packages/e2e-tests/specs/site-editor/global-styles-sidebar.test.js index 36b615d202926..bcc81670ce8f0 100644 --- a/packages/e2e-tests/specs/site-editor/global-styles-sidebar.test.js +++ b/packages/e2e-tests/specs/site-editor/global-styles-sidebar.test.js @@ -36,7 +36,8 @@ describe( 'Global styles sidebar', () => { const results = await page.$$( '.edit-site-block-types-item-list div[role="listitem"]' ); - expect( results.length ).toEqual( 1 ); + // Matches both Heading and Table of Contents blocks. (The latter contains "heading" in its description.) + expect( results.length ).toEqual( 2 ); } ); } ); } );