Skip to content

Commit

Permalink
Add test for the widgets screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Jan 15, 2021
1 parent 78e983a commit 82d25b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/e2e-tests/specs/widgets/adding-widgets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ describe( 'Widgets screen', () => {
const blockLibrary = await page.waitForSelector(
'[aria-label="Block Library"][role="region"]'
);

// Check that there are categorizations in the inserter (#26329).
const categoryHeader = await blockLibrary.$$( 'h2' );
expect( categoryHeader.length > 0 ).toBe( true );

const [ addParagraphBlock ] = await blockLibrary.$x(
'//*[@role="option"][*[text()="Paragraph"]]'
);
Expand Down

0 comments on commit 82d25b6

Please sign in to comment.