Skip to content

Commit

Permalink
Now that the table of contents block has a block supports it will app…
Browse files Browse the repository at this point in the history
…ear in the site editor block search results for the term 'header'. 'header' appears in the block.json description and is therefore a match.
  • Loading branch information
ramonjd committed Aug 19, 2022
1 parent ee1a644 commit 5948dc2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
} );
} );
} );

0 comments on commit 5948dc2

Please sign in to comment.